diff --git a/dist/rome.js b/dist/rome.js index 02c50c1..cd56d1c 100644 --- a/dist/rome.js +++ b/dist/rome.js @@ -4097,7 +4097,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`'); } diff --git a/dist/rome.standalone.js b/dist/rome.standalone.js index 7c58c41..35e317f 100644 --- a/dist/rome.standalone.js +++ b/dist/rome.standalone.js @@ -1157,7 +1157,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`'); }