Hello,
I have a newbie question, but I hope you can help me make up my mind.
I want to compile the Olson ZoneInfo database files I downloaded from
http://www.twinsun.com/tz/tz-link.htm
I made a basic program like this (I'm using groovy, but it is almost pure
java):
import org.joda.time.*
import org.joda.time.tz.*
ZoneInfoCompiler compiler = new ZoneInfoCompiler()
File[] sources = new File[1]
sources[0] = new File(System.getProperty('user.home')+'/northamerica')
File destino = new File(System.getProperty('user.home'));
Map mapa = compiler.compile(destino,sources)
println mapa
But I get the following exception:
java.lang.ArithmeticException: Adding time zone offset caused overflow
at
org.joda.time.chrono.ZonedChronology$ZonedDurationField.getOffsetToAdd(ZonedChronology.java:348)
at
org.joda.time.chrono.ZonedChronology$ZonedDurationField.getDifference(ZonedChronology.java:330)
at org.joda.time.chrono.BaseChronology.get(BaseChronology.java:260)
at org.joda.time.base.BasePeriod.<init>(BasePeriod.java:100)
at org.joda.time.Period.<init>(Period.java:439)
at
org.joda.time.tz.DateTimeZoneBuilder$PrecalculatedZone.create(DateTimeZoneBuilder.java:1432)
at
org.joda.time.tz.DateTimeZoneBuilder.toDateTimeZone(DateTimeZoneBuilder.java:395)
at org.joda.time.tz.ZoneInfoCompiler.compile(ZoneInfoCompiler.java:374)
at Script8.run(Script8:18)
Am I doing the right thing? I used the "northamerica" file located in
"tzdata2008b.tar.gz". Is that the right kind of file?
Thank you for your help
--
--
Ing. Isidoro TreviƱo de la Garza
044 55 1800 8365
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest