I am in +3 timezone now.
Now UTC time is 16:30 and at my place it is 19:30
I found an issue that for time zone America/Los_Angeles
which is theoretically -8 (rawOffset) I get unexpected time. I expected that if in my place 20:00, then at ths timezoe time should be 11 hours less(8+3) but in real life it is 10 hours less than in my place because of daylight saving.
So how can I get -7 offset if I have America/Los_Angeles
zoneId in my code ?
TimeZone.getTimeZone("America/Los_Angeles").getRawOffset()/(3600*1000)
returns -8 but now it differs from UTC for 7 hours