time-convertor

Convert time across timezones
git clone http://git.hanabi.in/repos/time-convertor.git
Log | Files | Refs | README | LICENSE

commit 6b06d84849e485f049b2a6db3ceb870f35f9419c
parent 038537356509f216acac897e2781ce4f048bf7d1
Author: Agastya Chandrakant <me@hanabi.in>
Date:   Mon, 18 May 2020 07:24:55 +0530

Change default

Diffstat:
Msrc/comp/currentTime.js | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/comp/currentTime.js b/src/comp/currentTime.js @@ -16,7 +16,7 @@ function useTime() { function CurrentTime() { const now = useTime(); - const [TZ, setTZ] = React.useState('America/New_York'); + const [TZ, setTZ] = React.useState('UTC'); const ISOtime = now.toISOString(); const tz = moment.tz.guess(); const localTZ = tz.replace(/_/g, ' '); @@ -27,9 +27,9 @@ function CurrentTime() { <div className="time-conversion"> <div className="row mb-3" id="labels"> <div className="col text-right" id="local-time-lbl-box"> - <h2 aria-level="2" id="local-time-lbl"> + <h4 aria-level="4" id="local-time-lbl"> Local time ({localTZ}) - </h2> + </h4> </div> <div className="col" id="converted-time-lbl-box"> <AutoCompleteText defaultValue={TZ} changeValue={setTZ} />