2009/12/1 Masayoshi Okutsu <masayoshi.oku...@sun.com>: > What is the time zone ID you are using? > > Thanks, > Masayoshi > > On 12/1/2009 1:55 AM, Bill Tims (RSI) wrote: >> >> From what I can find, this appears to be the right place to post this, if >> I'm wrong I would appreciate a pointer to the proper location. >> The database our app has to talk to has January 1,1900 12:00:00 am date >> in it. When I load the value into a open >> jdk date object (using Ubuntu/JBoss 4.2.3 GA-jdk6) I get December 31, 1899 >> 23:00:00. When I do the same thing on my >> dev box (Win XP/Sun jre 1.6.0_07) I get January 1, 1900 12:00:00 am. I >> wrote a test program that prints out the >> Timezone info for 1898-1902 and it appears that the open jdk has a >> daylight savings time starting on Jan 1, 1900 through >> Oct 1, 1900 and the sun version doesn't. According to Wikipedia, Daylight >> savings wasn't suggested until 1907. >> I can't find anything on the web that suggests where the timezone info is >> kept or how complicated it will be to rebuild whatever jar >> file is required. Can someone point me to the proper source file and >> suggest how involved building the fix will be? >> Thanks >> Bill >> ! >> >> Bill Tims >> >> Renaissance Systems, Inc. >> >> >> >
You don't give any details of the OpenJDK version - what does 'java -version' give on your Ubuntu box? If this is the system OpenJDK build, then it's an IcedTea build and thus includes a patch to use the system timezone data which is likely to be more up-to-date than that bundled with Sun's JDK. -- Andrew :-) Free Java Software Engineer Red Hat, Inc. (http://www.redhat.com) Support Free Java! Contribute to GNU Classpath and the OpenJDK http://www.gnu.org/software/classpath http://openjdk.java.net PGP Key: 94EFD9D8 (http://subkeys.pgp.net) Fingerprint: F8EF F1EA 401E 2E60 15FA 7927 142C 2591 94EF D9D8