+ 13

How can I adjust this java clock to align with USA time ?

I have tried the code here and I Just ran it on https://www.compilejava.net/ and same results as here on SL with no errors but the time is like 4 hours out of sink... https://code.sololearn.com/cY5Z35t6c09N/?ref=app <Solved>✓

29th May 2019, 8:50 PM
BroFar - avatar
2 Answers
+ 11
Thanks Gordon but that was the wrong answer <Solved> First I had to set GMT as primary setting and then target each timeZone ZoneIds... Look at the code to see code and generate results.
29th May 2019, 11:22 PM
BroFar - avatar
+ 1
Java's java.util.TimeZone TimeZone.getTimeZone("America/New_York" )
29th May 2019, 9:55 PM
Gordon - avatar