kwc.org Photos Spare Cycles MythBusters

Java/Windows Hate Hate Hate

I occassionally encounter something so moronic while doing my daily software programming, that I feel compelled to share. I know that many of you don't write code, but I hope that you can appreciate my sarcasm and the stupidity of the problem regardless.

Java, on Windows, does not correctly adjust for Daylight Savings Time.

I know that being able to tell time within your own timezone correctly is a minor feature, I mean, who needs to know that it's 6:24PM when you can more precisely find out that it's been 1112664323536 milliseconds since midnight, January 1, 1970 (UTC)?

More cathartic details are in the extended. Proof that I wasn't hallucinating this but are in this Java Forums thread: default timezone is wrong!.

I can also blame this problem on Windows, for twice the assign-the-blame satisfaction.

At the time I discovered the root of the problem, the clock on my computer said "6:15PM", which was the correct daylight-savings-adjusted time. Java, on the otherhand, insisted that it was 5:15PM. I looked at the Windows clock settings and found out that "Automatically adjust for daylight savings" wasn't selected. "Eh!?!?!," I thought, given that Windows was showing the correct time, but I selected it anyway -- Windows still showed that it was 6:15PM, but lo and behold, Java now knows the correct time. Huzzah!

To test my sanity, I unselected the "Automatically adjust" setting. Given that it said 6:15PM before I selected the setting, I assumed that it would still say 6:15PM after told it to no longer adjust. How wrong I was! Windows then displayed the time as 5:15PM. I hate you both, hate, hate, hate.

Comments (1)

bp:

Man, that's broken. Got any more CDs to sacrifice? Sadly, the only CDs I've ever owned with Java on them were either MS CDs (and, thus, you'd be sacrificing the MS Java, which probably isn't the right thing), or had development environments I'd rather not destroy, even if they're only really useful historically. *sigh*

Post a comment


related entries.

what is this?

This page contains a single entry from kwc blog posted on April 4, 2005 6:33 PM.

The previous post was Book: Maya Lin Boundaries.

The next post is Yahoo term extraction examples.

Current entries can be found on the main page.