From 4f7d0ef770368ccb4f38c5602cff98c9f2640e32 Mon Sep 17 00:00:00 2001 From: vidvidvid Date: Fri, 19 Nov 2021 08:18:06 +0100 Subject: [PATCH] fix: remove jstz, get timezone with Intl --- packages/web/components/Dashboard/Calendar.tsx | 3 +-- packages/web/package.json | 1 - yarn.lock | 5 ----- 3 files changed, 1 insertion(+), 8 deletions(-) diff --git a/packages/web/components/Dashboard/Calendar.tsx b/packages/web/components/Dashboard/Calendar.tsx index 06d9d376..6c07a5d5 100644 --- a/packages/web/components/Dashboard/Calendar.tsx +++ b/packages/web/components/Dashboard/Calendar.tsx @@ -1,10 +1,9 @@ -import jstz from 'jstz'; import React from 'react'; const calId = 'nih59ktgafmm64ed4qk6ue8vv4@group.calendar.google.com'; export const Calendar: React.FC = () => { - const timezone = jstz.determine().name(); + const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone; return (