add canonicalizeTimezone conversions
Co-authored-by: Om Mishra <contact@om-mishra.com>
This commit is contained in:
1 parent
49e1582c28
commit
839bf3898f
3 files changed
+36
-4
No files matched your search
@@ -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),
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user