I'm struggling with TimeZone problem in Java.
TimeZone.getDefault() was expected to return correct time-zone information, GMT+09:00. But, it shows 9 hour behind what it should be.( below is my computer system spec.)
OS : WindowXP SP2
jre : 1.5.10_b13
I googled it and found some articles dealing with the TimeZone problem.
It was registered in the bug database( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4762673 ).
But, the bug had been closed without distinct solution, instead vague workaround was suggested, just attaching "-Duser.timezone=Asia/Seoul" when starting the java application.
It works well, considering.... -_- ;
you can find more detail information related timezone bug below the link.
http://www.javaworld.com/javaworld/jw-10-2003/jw-1003-time.html?page=1
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4762673
timeZone.getDefaut() should return a timezone with id = "Asial/Seoul"
'Dev > Java' 카테고리의 다른 글
.getClass() 와 .class의 차이점 (0) | 2007.11.18 |
---|---|
eclipse 에서 라이브러리 추가하기 (0) | 2007.10.18 |
[ DBUNit + HSQLDB ] DBUnit, HSQL and the Boolean Data type (0) | 2006.10.20 |