From f6f14bf104402d88ca44ce0f6b98a18527d72808 Mon Sep 17 00:00:00 2001 From: Alexander Klein Date: Wed, 10 Mar 2021 10:40:59 +0100 Subject: [PATCH] fix(lib): add default value for getDateRange --- lib/date.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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];