forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commitacb897b
committed
Sync our copy of the timezone library with IANA release tzcode2019a.
This corrects a small bug in zic that caused it to output an incorrectyear-2440 transition in the Africa/Casablanca zone.More interestingly, zic has grown a "-r" option that limits the range ofzone transitions that it will put into the output files. That might beuseful to people who don't like the weird GMT offsets that tzdb likesto use for very old dates. It appears that for dates before the cutofftime specified with -r, zic will use the zone's standard-time offsetas of the cutoff time. So for example one might domake install ZIC_OPTIONS='-r @-1893456000'to cause all dates before 1910-01-01 to be treated as though 1910standard time prevailed indefinitely far back. (Don't blame me forthe unfriendly way of specifying the cutoff time --- it's secondssince or before the Unix epoch. You can use extract(epoch ...)to calculate it.)As usual, back-patch to all supported branches.1 parentd312de3 commitacb897b
5 files changed
+237
-83
lines changedLines changed: 4 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
| 31 | + | |
| 32 | + | |
| 33 | + | |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
| |||
52 | 55 |
| |
53 | 56 |
| |
54 | 57 |
| |
55 |
| - | |
| 58 | + | |
56 | 59 |
| |
57 | 60 |
| |
58 | 61 |
| |
|
Lines changed: 3 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
55 | 55 |
| |
56 | 56 |
| |
57 | 57 |
| |
58 |
| - | |
| 58 | + | |
59 | 59 |
| |
60 | 60 |
| |
61 | 61 |
| |
| |||
111 | 111 |
| |
112 | 112 |
| |
113 | 113 |
| |
| 114 | + | |
114 | 115 |
| |
115 | 116 |
| |
| 117 | + | |
116 | 118 |
| |
117 | 119 |
| |
118 | 120 |
| |
|
Lines changed: 8 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
47 | 55 |
| |
48 | 56 |
| |
49 | 57 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 |
| |
31 | 34 |
| |
32 | 35 |
| |
|
0 commit comments
Comments
(0)