From eadd0677733821b331b739ad8d24700bb0b60eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20=C3=85lund?= Date: Wed, 4 Mar 2020 12:47:09 +0100 Subject: [PATCH] Replace SYD with UTC --- .../src/components/HomepageTimer/HomepageTimer.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/frontend/packages/plugins/home-page/src/components/HomepageTimer/HomepageTimer.tsx b/frontend/packages/plugins/home-page/src/components/HomepageTimer/HomepageTimer.tsx index 2939a08db9..ec8c260c46 100644 --- a/frontend/packages/plugins/home-page/src/components/HomepageTimer/HomepageTimer.tsx +++ b/frontend/packages/plugins/home-page/src/components/HomepageTimer/HomepageTimer.tsx @@ -2,14 +2,14 @@ import React, { FC } from 'react'; import { HeaderLabel } from '@spotify-backstage/core'; const timeFormat = { hour: '2-digit', minute: '2-digit' }; +const utcOptions = { timeZone: 'UTC', ...timeFormat }; const nycOptions = { timeZone: 'America/New_York', ...timeFormat }; -const sydOptions = { timeZone: 'Australia/Sydney', ...timeFormat }; const tyoOptions = { timeZone: 'Asia/Tokyo', ...timeFormat }; const stoOptions = { timeZone: 'Europe/Stockholm', ...timeFormat }; const defaultTimes = { timeNY: '', - timeSYD: '', + timeUTC: '', timeTYO: '', timeSTO: '', }; @@ -29,7 +29,7 @@ function getTimes() { } const HomePageTimer: FC<{}> = () => { - const [{ timeNY, timeSYD, timeTYO, timeSTO }, setTimes] = React.useState( + const [{ timeNY, timeUTC, timeTYO, timeSTO }, setTimes] = React.useState( defaultTimes, ); @@ -48,9 +48,9 @@ const HomePageTimer: FC<{}> = () => { return ( <> + - ); };