mirror of
https://github.com/kremalicious/umami.git
synced 2024-12-18 07:13:37 +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());
|
||||
}
|
||||
|
||||
export function getDateRange(value, locale) {
|
||||
export function getDateRange(value, locale = 'en-US') {
|
||||
const now = new Date();
|
||||
const localeOptions = dateLocales[locale];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user