[kaffe] Timezone Expression

Ito Kazumitsu ito.kazumitsu at hidec.co.jp
Sun Jan 23 18:46:15 PST 2005


In message "[kaffe] Currency, timezone, etc."
    on 05/01/23, Ito Kazumitsu <kaz at maczuka.gcd.org> writes:

> bash-3.00$ cat TestDate.java 
> import java.util.Date;
> 
> public class TestDate
> {
>     public static void main(String args[])
>         throws Exception
>     {
>         Date date = new Date(1098968427000L); // 04-10-28 14:00:27 GMT+00:00
                                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This comment taken from test/regression/DateFormatTest.java is
wrong. "new Date(1098968427000L)" is 04-10-28 13:00:27 GMT+00:00.


>         System.out.println(date);
>     }
> }
> bash-3.00$ kaffe TestDate      
> Thu Oct 28 22:00:27 JDT 2004

> This must be "Thu Oct 28 23:00:27 JST 2004" because Japanese Standard Time
> does not have a daylight saving system.

So, Thu Oct 28 22:00:27 is correct. But anyway the timezone expression
"JDT" is wrong and it must be "JST".



More information about the kaffe mailing list