Subj : Daylight saving time problem (maybe) To : netscape.public.mozilla.jseng From : Rod Whiteley Date : Mon Sep 13 2004 01:43 pm I'm trying to find out why messages I create in Thunderbird and events I create in Sunbird have the wrong time on them. It seems to be because JavaScript is ignoring DST. For example, as I write this it is around 13:45 local time in the UK. That's 12:45 UTC, because the zone offset here is +0000 and DST is currently in effect. In Mozilla 1.8a3 on Windows 98, I type: javascript: with (new Date()) getHours() + " " + getUTCHours() I see the result: 12 12 where the first number, the hour in local time, is wrong. But if I type: javascript: with (java.util.Calendar) getInstance().get(HOUR_OF_DAY) I see the correct hour in local time: 13 If I set my machine for New York time it is around 8:45 a.m. EDT (still 12:45 UTC, of course). JavaScript returns 7 12, where the 7 is wrong, and Java returns 8. Am I right in thinking that these numbers are wrong? Is there some setting that I can tweak to fix things? -- Rod Whiteley .