hello,
I'm struggling with timezone and chronology... does somebody can help
me please ?
what's wrong with this code ?
public void testDateWar() {
DateTimeZone.setDefault(DateTimeZone.forID("Europe/Brussels"));
System.out.println(" "+DateTimeZone.getDefault());
int year= 1914;
int month= 11;
int day= 8;
DateMidnight dm = new DateMidnight(year,month ,day);
}
I'm using jodatime 1.2.1 on a ibm jdk 1.4.2 and I've got always an exception :
java.lang.IllegalArgumentException: Illegal instant due to time zone
offset transition: 1914-11-08T00:00:00.000
at
org.joda.time.chrono.ZonedChronology.localToUTC(ZonedChronology.java:143)
at
org.joda.time.chrono.ZonedChronology.getDateTimeMillis(ZonedChronology.java:119)
at
org.joda.time.chrono.AssembledChronology.getDateTimeMillis(AssembledChronology.java:133)
at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:254)
at org.joda.time.base.BaseDateTime.<init>(BaseDateTime.java:195)
at org.joda.time.DateMidnight.<init>(DateMidnight.java:231)
i tried to play with timezone and chronology arguments but nothing
really concrete works as expected.
thanks for any comment,
Stéphan
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Joda-interest mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/joda-interest