Hi.
I'm getting the following error when I try to run the code
public static void main(String[] args) {
// -Duser.timezone=Brazil/East
DateTimeFormatter dtf = DateTimeFormat.forPattern( "dd/MM/yyyy" );
LocalDate b = dtf.parseDateTime( args[0] ).toLocalDate();
System.out.println( b );
}
Exception in thread "main" java.lang.IllegalArgumentException: Cannot parse
"19/10/2008": Illegal instant due to time zone offset transition
(America/Sao_Paulo)
at
org.joda.time.format.DateTimeParserBucket.computeMillis(DateTimeParserBucket.java:336)
at
org.joda.time.format.DateTimeFormatter.parseDateTime(DateTimeFormatter.java:662)
at joda.Teste.main(Teste.java:22)
The argument to the program is 19/10/2008, the day in which our daylight
starts here.
I can't figure out how to fix this.
Is there any way to parse a date other than that?
Thanks!
--
-----------------------------------------
Leandro Ferro Luzia
C.Computação - USP - 2004
-----------------------------------------
"Computer science is no more about computers than astronomy is about
telescopes." - Dijkstra
"There's nothing remarkable about it.
All one has to do is hit the right keys at the right time and the instrument
plays itself" - Bach
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest