mirror of
https://github.com/mikecao/umami.git
synced 2021-05-17 18:46:32 +03:00
fix(lib): add default value for getDateRange
This commit is contained in:
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user