mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 15:23:38 +01:00
fix(lib): add default value for getDateRange
This commit is contained in:
parent
3cb748b29b
commit
f6f14bf104
@ -36,7 +36,7 @@ export function getLocalTime(t) {
|
|||||||
return addMinutes(new Date(t), new Date().getTimezoneOffset());
|
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 now = new Date();
|
||||||
const localeOptions = dateLocales[locale];
|
const localeOptions = dateLocales[locale];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user