From 7a2c2f403ce16a9269202f887418660b44f067e5 Mon Sep 17 00:00:00 2001 From: Freddy03h Date: Tue, 10 Mar 2015 11:27:31 +0100 Subject: [PATCH] Throw error one day interval between min and max only if there is no time picker --- src/defaults.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/defaults.js b/src/defaults.js index 2117b92..1bec9df 100644 --- a/src/defaults.js +++ b/src/defaults.js @@ -47,7 +47,7 @@ function defaults (options, cal) { o.max = o.min; o.min = temp; } - if (o.date === true) { + if (o.time === false) { if (o.max.clone().subtract(1, 'days').isBefore(o.min)) { throw new Error('`max` must be at least one day after `min`'); }