Can't generate NodaZoneData file using NodaTime.TzdbCompiler

Bruce

When I attempt to generate a NodaZoneData file using the NodaTime.TzdbCompiler and the latest IANA tzdb download, I receive the following output:

Starting compilation of directory data\2014f
Parsing file africa . . .
Parsing file antarctica . . .
Parsing file asia . . .
Parsing file australasia . . .
Parsing file backward . . .
Parsing file etcetera . . .
Parsing file europe . . .
Parsing file northamerica . . .
Parsing file pacificnew . . .
Parsing file southamerica . . .
Parsing file systemv . . .
Parsing file zone1970.tab . . .

Unhandled Exception: System.IO.InvalidDataException:
Unexpected zone database keyword: AD at ModaTime.TzdbCompiler.Tzdb.TzdbZoneInfoParser.ParseLine(String line, TzdbDatabase database)

The compiler appears to stop on the file zone1970.tab. If I remove that file. I can compile a NodaZoneData file without errors.

Jon Skeet

Yes, this is due to zone1970.tab only being introduced in 2014f, and the released TzdbCompiler not knowing about it. Delete the file, and you should be fine - or you can just use the nzd file we've already put up on the web site.

If you're brave enough to fetch the 2.0 codebase, TzdbCompiler has been fixed to expect zone1970.tab - and we've got an issue tracking the fact that we should support it properly at some point.

If you want to patch your local copy instead, revision 707440a3 is the change that fixes it in 2.0. Basically you just need to add that file to the list of ones that TzdbCompiler ignores.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Can't Generate Google Configuration File

From Dev

GAE can't generate discovery file

From Dev

can't generate a thumbnail of an image using carrierwave

From Java

pdftk debian can't generate fdf [error : Unable to find file]

From Java

How can one generate and save a file client side using Blazor?

From Dev

Can I automatically generate a change script using a .scmp file?

From Dev

Doctrine can't generate a schema when using single table inheritance?

From Dev

Can't generate ons-list using javascript [OnsenUI]

From Dev

Can't generate QueryDsl

From Dev

Can't generate controllers

From Dev

Generate File Using Javascript

From Dev

Can't block access to a file using htaccess

From Dev

Can't open file using QStandardPaths

From Dev

Can't modify an Excel File using LINQ

From Dev

Can't run a java file using javac

From Dev

Can't upload file to a server using curl

From Dev

using perl can't load the file

From Dev

Can't save excel file using openpyxl

From Dev

Can't block access to a file using .htaccess

From Dev

Can't overwrite a file wrapped in a using statement

From Dev

Mac OS - Can I generate a clickable link to local file using relative path like “file:///~”

From Dev

How to save a timestamp using NodaTime?

From Dev

Can't open a file with unicode chars in the file name using CLion

From Dev

Can't rename each 'file' to 'file.text' (using xargs)

From Dev

Can't generate random number

From Dev

Can't generate RSAPublicKey in JAVA

From Dev

Can't generate a timestamp with javascript?

From Dev

Can't generate the correct class

From Dev

Hibernate can't generate id