diff --git a/lib/date.js b/lib/date.js index 06aaac13..578d9014 100644 --- a/lib/date.js +++ b/lib/date.js @@ -36,7 +36,7 @@ export function getLocalTime(t) { return addMinutes(new Date(t), new Date().getTimezoneOffset()); } -export function getDateRange(value, locale) { +export function getDateRange(value, locale = 'en-US') { const now = new Date(); const localeOptions = dateLocales[locale];