D
david.karr
Here in Seattle, on April 14, we're in daylight savings time. I've
noticed since DST started that log files created by Java applications
on my Ubuntu box are an hour behind. I figured it had something to do
with daylight savings time. Non-Java applications do not display this
symptom.
If it matters, here's the output of "java -version":
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
I wrote a small test application that prints out relevant information
about daylight savings time. I'll attach the test code, but the
output it produces follows this. You'll see that as of today, it
thinks DST is not in effect. It also shows that it thinks DST starts
on April 26, and ends on October 25, which is not correct.
I filed a Ubuntu bug report for this, but I'd like to get some
feedback from "this side of the house" to see why this might be
happening.
date[Mon Apr 13 13:04:01 PST 2009] zonename[Pacific Standard Time]
dstSavings[3600000] usesDST[true] inDST[false] rawOffset[-28800000]
offset[-28800000]
date[Mon Apr 13 13:04:01 PST 2009] inDST[false]
date[Wed May 13 13:04:01 PDT 2009] inDST[true]
date[Sat Jun 13 13:04:01 PDT 2009] inDST[true]
date[Mon Jul 13 13:04:01 PDT 2009] inDST[true]
date[Thu Aug 13 13:04:01 PDT 2009] inDST[true]
date[Sun Sep 13 13:04:01 PDT 2009] inDST[true]
date[Tue Oct 13 13:04:01 PDT 2009] inDST[true]
date[Fri Nov 13 13:04:01 PST 2009] inDST[false]
date[Sun Dec 13 13:04:01 PST 2009] inDST[false]
date[Wed Jan 13 13:04:01 PST 2010] inDST[false]
date[Sat Feb 13 13:04:01 PST 2010] inDST[false]
date[Sat Mar 13 13:04:01 PST 2010] inDST[false]
date[Sun Apr 26 00:00:00 PST 2009] inDST[false]
date[Mon Apr 27 00:00:00 PDT 2009] inDST[true]
date[Sun Oct 25 00:00:00 PDT 2009] inDST[true]
date[Mon Oct 26 00:00:00 PST 2009] inDST[false]
noticed since DST started that log files created by Java applications
on my Ubuntu box are an hour behind. I figured it had something to do
with daylight savings time. Non-Java applications do not display this
symptom.
If it matters, here's the output of "java -version":
java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
I wrote a small test application that prints out relevant information
about daylight savings time. I'll attach the test code, but the
output it produces follows this. You'll see that as of today, it
thinks DST is not in effect. It also shows that it thinks DST starts
on April 26, and ends on October 25, which is not correct.
I filed a Ubuntu bug report for this, but I'd like to get some
feedback from "this side of the house" to see why this might be
happening.
date[Mon Apr 13 13:04:01 PST 2009] zonename[Pacific Standard Time]
dstSavings[3600000] usesDST[true] inDST[false] rawOffset[-28800000]
offset[-28800000]
date[Mon Apr 13 13:04:01 PST 2009] inDST[false]
date[Wed May 13 13:04:01 PDT 2009] inDST[true]
date[Sat Jun 13 13:04:01 PDT 2009] inDST[true]
date[Mon Jul 13 13:04:01 PDT 2009] inDST[true]
date[Thu Aug 13 13:04:01 PDT 2009] inDST[true]
date[Sun Sep 13 13:04:01 PDT 2009] inDST[true]
date[Tue Oct 13 13:04:01 PDT 2009] inDST[true]
date[Fri Nov 13 13:04:01 PST 2009] inDST[false]
date[Sun Dec 13 13:04:01 PST 2009] inDST[false]
date[Wed Jan 13 13:04:01 PST 2010] inDST[false]
date[Sat Feb 13 13:04:01 PST 2010] inDST[false]
date[Sat Mar 13 13:04:01 PST 2010] inDST[false]
date[Sun Apr 26 00:00:00 PST 2009] inDST[false]
date[Mon Apr 27 00:00:00 PDT 2009] inDST[true]
date[Sun Oct 25 00:00:00 PDT 2009] inDST[true]
date[Mon Oct 26 00:00:00 PST 2009] inDST[false]