[SourceJammer-devel] Argh I hate SJ and DST!
Brought to you by:
robertmacgrogan
From: Marc P. <ma...@an...> - 2005-03-30 15:17:22
|
So the clocks go forward here in the UK, and again the SJ server thinks -all- of my local files are out of date. This is such a pain, we have to track it down. How can I help? My clients are setup for GMT, with "automatically adjust for DST" turned on. The server is setup exactly the same. All boxes show the same time. I'm guessing there is a problem with some Time/Calendar usage in SJ server or client not using methods that take the timezone into account properly. Date.getTime() returns UTC. This does not include DST adjustments. So I suspect in some places SJ is using this UTC value with DST adjusted (Calendar.get(Calendar.ZONE_OFFSET) + Calendar.get(Calendar.DST_OFFSET)) and in others just the ZONE_OFFSET ...or SJ is never doing timezone adjustments. Anyway, it's getting confused along these lines. Cheers -- Marc Palmer wj...@wa... Wangjammers - Java, J2ME and Web Consultants ~ http://www.wangjammers.org/ |