mirror of
https://github.com/umami-software/umami.git
synced 2026-02-04 04:37:11 +01:00
fix(lib): add default value for getDateRange
This commit is contained in:
parent
3cb748b29b
commit
f6f14bf104
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue