Wow, thank you very much,
This is the kind of things that show how that this project is a high quality
one.
2008/5/15, Brian S O'Neill <[EMAIL PROTECTED]>:
>
> I updated the project in the subversion repository to use tz 2008b data,
> which appears to work fine. The build passes in a flag to override the
> default time zone provider, which appears to be required now. It used to
> only be required for bootstrapping purposes.
>
> Set the system property "org.joda.time.DateTimeZone.Provider" to
> "org.joda.time.tz.UTCProvider". If launching Java directly, use:
>
> java -Dorg.joda.time.DateTimeZone.Provider=org.joda.time.tz.UTCProvider ...
>
> From groovy, call
> System.setProperty('org.joda.time.DateTimeZone.Provider',
> 'org.joda.time.tz.UTCProvider')
>
>
>
> Isidoro Trevino wrote:
> > I couldn't really find an older archive, but I tried to compile all
> > the tz files one by one, and most of them were broken :(
> >
> >
> >
>
> > 2008/5/14, Brian O'Neill <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>:
>
> >
> > What happens when you use an older version of the tz database? It
> > might be that a new rule was added which broke the compiler.
> >
> > On Wed, May 14, 2008 at 4:58 PM, Isidoro Trevino
>
> > <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:
> >
> > 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
> >
>
>
> -------------------------------------------------------------------------
> 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
>
--
--
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