W
www
Hi,
This year's Daylight Saving Time rule is different in US. It is March
11, the second Sunday in March, instead of 1st Sunday in April. I have
written a small Java program to test if it is doing right.
<pseudo-code>
Set a date and time, like "2007-03-10 08:00:00"
forward 24 hours
print out the date and time
</pseudo-code>
I found that in Windows XP, output is correct(2007-03-11 09:00:00), but
in linux, it is wrong(2007-03-11 08:00:00).
I have heard that Java JVM gets its time from OS. Microsoft XP may have
updated and RedHat Linux may not. Is this correct? If this case, why Sun
is still providing a tool to fix the problem when Microsoft has already
done it? See
http://java.sun.com/javase/tzupdater_README.html
Thank you very much.
This year's Daylight Saving Time rule is different in US. It is March
11, the second Sunday in March, instead of 1st Sunday in April. I have
written a small Java program to test if it is doing right.
<pseudo-code>
Set a date and time, like "2007-03-10 08:00:00"
forward 24 hours
print out the date and time
</pseudo-code>
I found that in Windows XP, output is correct(2007-03-11 09:00:00), but
in linux, it is wrong(2007-03-11 08:00:00).
I have heard that Java JVM gets its time from OS. Microsoft XP may have
updated and RedHat Linux may not. Is this correct? If this case, why Sun
is still providing a tool to fix the problem when Microsoft has already
done it? See
http://java.sun.com/javase/tzupdater_README.html
Thank you very much.