mirror of
https://github.com/umami-software/umami.git
synced 2026-02-11 16:17:13 +01:00
add canonicalizeTimezone conversions
Co-authored-by: Om Mishra <contact@om-mishra.com>
This commit is contained in:
parent
49e1582c28
commit
839bf3898f
3 changed files with 36 additions and 4 deletions
|
|
@ -5,7 +5,7 @@ export function useDateParameters() {
|
|||
const {
|
||||
dateRange: { startDate, endDate, unit },
|
||||
} = useDateRange();
|
||||
const { timezone, toUtc } = useTimezone();
|
||||
const { timezone, toUtc, canonicalizeTimezone } = useTimezone();
|
||||
|
||||
return {
|
||||
startAt: +toUtc(startDate),
|
||||
|
|
@ -13,6 +13,6 @@ export function useDateParameters() {
|
|||
startDate: toUtc(startDate).toISOString(),
|
||||
endDate: toUtc(endDate).toISOString(),
|
||||
unit,
|
||||
timezone,
|
||||
timezone: canonicalizeTimezone(timezone),
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue