Page 1 of 1
Daylight Savings Time
Posted: Sun Mar 13, 2011 2:59 pm
by Fedya
KGS seems to think I'm still in UTC-5, even though here in the US, Daylight Savings Time started overnight. As I write, it's about 6:00 PM, but if I look at the games list of somebody who just started a game, it will say that the game was started at 5:00 PM. The computer's (Windows XP) clock is set for UTC-5, with the box for automatically detecting changes in DST ticked.
Is anybody else (obviously in the US/Canada) having this problem?
Re: Daylight Savings Time
Posted: Mon Mar 14, 2011 10:18 am
by wms
KGS uses exclusively UTC internally. All translation to/from local time is done on your computer by your local java system. Since your computer has it correct, I'd guess that your local Java system uses its own (incorrect or out of date) time zone database.
Re: Daylight Savings Time
Posted: Mon Mar 14, 2011 10:38 am
by fwiffo
Java is actually fairly brain-dead about timezones. In the time zone configuration thing, try selecting a different city in the same timezone. For instance, I couldn't get it to work when my computer (Linux) was set to America/Detroit, but it worked with America/New_York even though they're the same timezone.
(Sometimes there are multiple choices for the same time zone because they were different in the past and they want to support correct conversion of historical times/dates).
Re: Daylight Savings Time
Posted: Mon Mar 14, 2011 11:24 am
by oren
wms wrote:KGS uses exclusively UTC internally. All translation to/from local time is done on your computer by your local java system. Since your computer has it correct, I'd guess that your local Java system uses its own (incorrect or out of date) time zone database.
Yes, I've had this happen when we built a program on Java but didn't want to update our JRE for fear of having to reverify everything. Unfortunately the government changed the daylight savings time after this.