Commit eec2798
committed
generate-tz-header.py: Fix position coordinate parsing.
We were reading zone.tab incorrectly, constructing a decimal
value directly from the coordinate data. But described in the
companion zone1970.tab file (tzdata package), the format is:
# 2. Latitude and longitude of the timezone's principal location
# in ISO 6709 sign-degrees-minutes-seconds format,
# either ±DDMM±DDDMM or ±DDMMSS±DDDMMSS,
# first latitude (+ is north), then longitude (+ is east).
Update our script to parse and convert these coordinates into
decimal values correctly.
Fixes #415.1 parent 789b2ee commit eec2798
2 files changed
+421
-424
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
| 24 | + | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
| 26 | + | |
| 27 | + | |
31 | 28 | | |
32 | 29 | | |
33 | 30 | | |
| |||
0 commit comments