1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-23 16:43:20 +00:00
Commit Graph

3174 Commits

Author SHA1 Message Date
7436d74387 Release tzcode2013f and tzdata2013f.
* NEWS, Makefile (VERSION): Increase to 2013f.
2013f
2013-09-24 23:42:08 -07:00
6e770de058 Port to x32 by fixing type incompatibility with POSIX.
Reported by Elliott Hughes in
<http://mm.icann.org/pipermail/tz/2013-September/020376.html>.
* localtime.c (timezone) [USG_COMPAT]:
(altzone) [ALTZONE]: Now long, not time_t.
* strftime.c (_fmt): Use long, not int, to store timezone.
* NEWS: Document this.
2013-09-24 18:42:34 -07:00
e28afbbac3 * asia (Palestine): Autumn transition is now at 00:00, not 01:00.
(Thanks to Steffen Thorsen.)
* NEWS: Document this.
2013-09-24 12:02:25 -07:00
13c1a17683 * NEWS: Mention mawk bug and workaround. 2013-09-24 11:41:53 -07:00
464a055adf * leapseconds.awk: Avoid long string literals.
This works around an Awk bug in Ubuntu 12.04 LTS, 32 bits,
reported by Cyril Baurand in
<http://mm.icann.org/pipermail/tz/2013-September/020370.html>
2013-09-24 08:54:39 -07:00
8ea4850bf6 dist: 'make set-timestamps' cleanup
* Makefile (set-timestamps): Use git's tformat rather than format,
to port to strict POSIX hosts where `` output in shell scripts
cannot end in a non-newline.  Use git diff --quiet rather than git
diff --name-only, as it's simpler.  Use touch -c for safety, and
-m to avoid setting last-access time, which we don't care about.
Diagnose files that don't match repository.
* NEWS: Document this.
2013-09-23 10:58:56 -07:00
bdf636b211 * NEWS: Mention self and git tags. 2013-09-23 00:10:57 -07:00
928fb7ab7e * NEWS: Update release dates slightly; use "-", not "+" to connect. 2013-09-23 00:00:49 -07:00
e6033febb1 * Makefile (DOCS): Add NEWS. 2013-09-21 16:26:59 -07:00
e5e86decb9 * NEWS: New file. 2013-09-21 16:25:14 -07:00
69f943797b * southamerica (Para): Paraguayan law specifies no transition time.
Mention this in a comment.  Thanks to Waldemar Villamayor-Venialbo in
<http://mm.icann.org/pipermail/tz/2013-September/020327.html>.
2013-09-21 09:09:24 -07:00
5250212e82 * asia (Jordan, Asia/Amman): Guess that Jordan's change is permanent. 2013-09-21 08:54:30 -07:00
ba0a5b4708 * newtzset.3: Capitalize more consistently. 2013-09-21 08:35:26 -07:00
1eda0f6cd4 Tocantins won't observe DST this spring.
Thanks to Steffen Thorsen in
<http://mm.icann.org/pipermail/tz/2013-September/020311.html>.
* southamerica (America/Araguaina): No longer observing DST.
2013-09-20 09:58:15 -07:00
db6270a00d Release tzcode2013e and tzdata2013e.
* Makefile (VERSION): Increase to 2013e.
2013e
2013-09-19 23:50:04 -07:00
b8e081b8ba * europe (Europe/Vaduz): Add confirming commentary from Alois Treindl. 2013-09-18 10:39:29 -07:00
738ad89a82 * zic.c: Output version-2 format files if possible.
We don't know of any clients where this makes a difference, but it
is a more-conservative change, as in theory older clients could
reject version-3 format files merely because of the version number.
(ZIC_VERSION_PRE_2013): New macro.
(writezone): New arg 'version'.  All callers changed.
(outzone): Output version-2 format files unless the capabilities
of version 3 are used.
2013-09-15 23:22:33 -05:00
9ae173df4c * zic.8: "any number of" -> "one or more" white space chars.
Problem reported by Michael Deckers in
<http://mm.icann.org/pipermail/tz/2013-September/020206.html>.
2013-09-15 23:17:45 -05:00
ce93b2490f * tzfile.5 (SEE ALSO): Mention zdump(8), zic(8). 2013-09-15 23:15:13 -05:00
a48e137422 * Theory: Fix typos noted by Philip Newton
in <http://mm.icann.org/pipermail/tz/2013-September/020197.html>.
2013-09-15 18:36:34 -05:00
9d3b5229ca * Theory (Accuracy of the tz database): New section.
It contains material moved here from other sections, along
with material taken from my recent emails to the tz mailing list.
Suggested by Zefram in
<http://mm.icann.org/pipermail/tz/2013-September/019863.html>.
2013-09-14 22:28:37 -07:00
4a0d6bb036 * europe: Fix comment misspelling in previous change. 2013-09-11 20:42:25 -07:00
9805c5c4a3 * europe, zic.8 (Europe/Zurich): Change transition to 1853-07-16.
Explain how I derived this guess from Messerli's book.
Also, give better evidence about the 1894 transition,
from Pierre-Yves Berger.
2013-09-11 18:28:36 -07:00
09f994d25d * europe, zic.8: Correct Bern Mean Time to 0:29:46.
Reported by Alois Treindl in
<http://mm.icann.org/pipermail/tz/2013-September/020139.html>.
2013-09-11 09:17:03 -07:00
a46793a95b Revert the change that added meta-information to version-3 format.
Further testing found that it was incompatible with Ubuntu 12.04 glibc
so this feature requires redesign and more testing.
* Makefile (ZFLAGS): Remove comment about name and version info.
Make it an empty var instead.
* tzfile.5, tzfile.h: Remove description of meta-information.
* zic.8: Remove options -n and -o.
* zic.c: Don't include <stddef.h>.
(genoption, genoptions, genname, addgenoption, writevalue): Remove.
(usage, main, writezone): Remove support for -n and -o.
2013-09-11 02:42:07 -07:00
2022cddf08 Fix minor problems found by static checking.
Mostly this moves links so that files can be zic'ed standalone.
* antarctica (Antarctica/McMurdo): Move to australasia,
* australasia (Pacific/Johnston): Move to northamerica.
* checktab.awk: Add special case for America/Montreal, pending
the tzwinnow approach.
* northamerica (America/Anguilla, America/Dominica, America/Grenada)
(America/Guadeloupe, America/St_Barthelemy, America/Marigot)
(America/Montserrat, America/St_Kitts, America/St_Lucia)
(America/St_Vincent, America/Tortola, America/St_Thomas):
Move to southamerica.
* southamerica: Receive above-described moves.
* zic.c (writezone): Remove unused local.
2013-09-11 02:21:27 -07:00
fe717b16cc * zic.8 (EXTENDED EXAMPLE): Adjust to match what's in 'europe' now.
Reported by Alois Treindl in
<http://mm.icann.org/pipermail/tz/2011-August/008722.html>.
2013-09-11 01:54:41 -07:00
2e053b5600 Remove -t ZONETABTYPE option from 'tzselect'.
This was experimental, and it appears that the tzwinnow
approach will be better.  We need to cut a new stable
release soon, and the -t option might make it harder to
integrate tzwinnow later, so let's omit -t for now.
* .gitignore: Remove time.tab.
* Makefile (ZONETABTYPE): Remove.  All uses removed.
(time.tab): Remove.  All uses removed.
* Theory: Omit discussion of time.tab.
* zone-time.awk: Remove.
* tzselect.8: Omit -t and time.tab.
* tzselect.ksh (ZONETABTYPE): Remove.  All uses removed.
Remove -t ZONETABTYPE option.
* zone.tab: Restore first comment line, since there's no longer
a need to distinguish this file from time.tab.
2013-09-10 17:47:17 -07:00
8dada0cec8 * tzfile.h: Fix tzfile.h comment.
Spelling problem reported by Nathan Stratton Treadway in
<http://mm.icann.org/pipermail/tz/2013-September/020121.html>.
2013-09-10 13:15:22 -07:00
fe2db73d5f Improve tzfile format as suggested by Zefram and Alan Barrett.
* tzfile.5: Be a bit more careful about wording for integers.
Use binary terminators for the byte strings, not newlines.
Add a size field.  Terminate by another NUL.  Mention where
future extensions are expected to go.
* zic.c (writezone): Implement this.
(addgenoption): Omit namelen check; no longer needed.
(writevalue): Remove.
2013-09-10 12:49:45 -07:00
14333b7db8 build: support DESTDIR
* Makefile (install, INSTALL, posix_only, right_only, right_posix)
(posix_right, $(DESTDIR)$(TZLIB)): Add DESTDIR support.
Modified from a suggestion by Volker Zell in
<http://mm.icann.org/pipermail/tz/2013-September/020058.html>.
2013-09-09 23:58:03 -07:00
d74d5b9500 * tzfile.5: Repeat the TZ string after the name-value pairs.
Suggested by Arthur David Olson in
<http://mm.icann.org/pipermail/tz/2013-September/020100.html>.
* zic.c (writezone): Implement this.
2013-09-09 22:32:56 -07:00
147ea0873b * europe (Europe/Zurich): Move 1848 transition to 1855. 2013-09-09 21:49:20 -07:00
d7680ffd3d Add optional meta-information to version-3 format.
* Makefile (ZFLAGS): Add a comment about how to enable meta-info.
* tzfile.5: Describe meta-information.
* zic.8: Document new options -n and -o, which cause zic to
generate meta-info.
* zic.c: Include <stddef.h>, for ptrdiff_t.
(genoption, genoptions, genname): New static vars.
(usage): Summarize new options.
(addgenoption, writevalue): New function.
(main, writezone): Add support for new options.
2013-09-09 17:16:37 -07:00
8ee0fbebc6 Reflect Fiji DST change planned for October.
Reported by David Wheeler in
<http://mm.icann.org/pipermail/tz/2013-September/020083.html>.
* australasia (Fiji): Tweak spring-forward transitions to match
timeanddate.com's predictions.
* newtzset.3: Adjust Fiji example to match updated predictions.
Reword examples so that the English descriptions are more
consistent and are roughly in the same order as the TZ string
contents.
2013-09-09 12:39:51 -07:00
db9a9e1fe8 * europe (Europe/Vaduz): Now a link to Europe/Zurich.
This is more likely to be correct.
2013-09-09 11:50:29 -07:00
f8e80af5fc Replace a zone with a link when that doesn't lose non-LMT info.
* africa (Africa/Juba): Now a link to Africa/Khartoum.
2013-09-09 11:49:02 -07:00
82563b54ca Fix off-by-one bug with Kingston Mean Time.
* northamerica (America/Cayman, America/Jamaica, America/Grand_Turk):
Change KMT from -5:07:12 to -5:07:11 (should be -5:07:10.41).
* zone.tab: Fine-tune geographical coordinates to match -5:07:10.41.
I chose the latitude to match the General Post Office, Kingston,
in the city center according to Google Maps.
2013-09-09 11:38:05 -07:00
cd270af158 * zic.c: Tweak 400-years-hack to better handle some edge cases better.
Derived from Zefram's patch mentioned in
<http://mm.icann.org/pipermail/tz/2013-July/019470.html>.
With the current tz data, this affects only the Asia/Tehran file,
and it doesn't affect zdump output.
(YEAR_BY_YEAR_ZONE): New constant.
(stringzone): Return it when applicable.
(outzone): Search through a couple of extra years when extending.
Extend when we ran past 2037 in the data, too.
2013-09-08 23:53:35 -07:00
27c15f3625 Bump tzfile format to version 3.
Also, improve the documentation and diagnostics in this area.
Suggested by Arthur David Olson in
<http://mm.icann.org/pipermail/tz/2013-September/020064.html>.
* tzfile.5, tzfile.h: Bump tzfile format to version 3.
* zic.8: Document -v better.
* zic.c (ZIC_VERSION): Bump from '2' to '3'.
(stringrule, stringzone, outzone): Report compatibility issues
more carefully, mentioning client dates.
2013-09-08 23:04:07 -07:00
d7d8679c08 * zic.c: Prefer <stdarg.h> to allocating memory by hand.
Since we assume C89 now, it's safe to use vfprintf.
(verror): New function, with the old implementation of 'error'
but with a va_list API.
(error, warning): Use it.
(associate, gethms): Pass explicit %s to avoid GCC warning about
possibly unsafe formats.
(inzone, outzone, newabbr): Simplify by using the new error or
warning functions, avoiding the need to allocate and free memory.
* private.h (ATTRIBUTE_FORMAT): New macro.
2013-09-08 21:48:01 -07:00
30364485a6 Improve the support for perpetual DST.
Problem reported by Zefram in
<http://mm.icann.org/pipermail/tz/2013-September/020059.html>.
* localtime.c (tzparse): Elide simultaneous entries out of and
into DST if DST goes for an hour more than a year (actually, for
more than the DST offset more than a year).  Since this
optimization can elide all entries, avoid looping forever looking
for entries that will never arrive.  While we're at it, fix
another portability bug where the code assumed wraparound on
signed integer overflow.
* newtzset.3, tzfile.5: Mention that as an extension to POSIX,
if DST covers the entire year plus the DST offset, it's assumed to
be in effect all year.  Give an example.
* zic.c (stringrule): Omit the "J" in January and February,
as this can save a byte or two in the output.
(rule_cmp): New function.
(stringzone): Do a better job of constructing the standard-time
abbreviation when there is perpetual DST.  Defer to the new
stringrule to construct the times for perpetual DST.
Fix bug noted by Zefram, which caused a stray hour of standard
time to be inserted in an otherwise perpetual DST.
Previously, this code generated "WARST4WARST,J1/0,J365/24"
for the San Luis example; now it generates "WART4WARST,0/0,J365/25".
2013-09-08 19:16:32 -07:00
019082fd45 * zic.c (stringzone): Add support for perpetual DST.
This causes zic to generate, e.g., TZ='WART4WARST,J1/0,J365/24'
for perpetual DST in San Luis, Argentina.
See <http://mm.icann.org/pipermail/tz/2013-September/020056.html>.
2013-09-06 18:56:00 -07:00
07351e0248 Support time stamps past 2038 in zones like America/Santiago.
This implements a suggestion by Arthur David Olson.
Without this change, zic -v diagnoses problems with several zones
where it cannot compute a POSIX-equivalent TZ setting for time
stamps past 2038, which means these time stamps may be mishandled.
This entails a minor change to the binary tz file format, to allow
a minor extension to the POSIX TZ setting in the binary file,
instead of requiring a pure POSIX TZ setting.  The zones fixed by
this change are America/Godthab, America/Santiago, Antarctica/Palmer,
Asia/Gaza, Asia/Hebron, Asia/Jerusalem, Pacific/Easter, and
Pacific/Fiji.  The only zone that remains unfixed is
Asia/Tehran, which schedules clock transitions via the
Iranian calendar, something that even the extended TZ
setting cannot represent.
* localtime.c (getrule): Allow transition times to be signed.
* newtzset.3: Describe the extensions to POSIX TZ strings.
Some of these extensions (e.g., hours == 26) were already
implemented but were not documented.  Give examples.
* tzfile.5: Document the relaxed restriction on the stored TZ
string; its hours component can be in the range -167..167 rather
than the POSIX-required 0..24.  Refer to newtzset(5).
* zic.c (stringoffset): Allow hours to go up to 167.
(stringrule): Be willing to generate hours in the range -167
through 167.
2013-09-05 18:28:08 -07:00
bd3e920d0e Record that San Luis is at UTC-3, not UTC-4 with perpetual UTC.
* southamerica (SanLuis): Move October 2009 transition from here ...
(America/Argentina/San_Luis): ... to here.  This causes San Luis
to not appear to be on perpetual DST.
2013-09-05 13:22:54 -07:00
0aaf939698 * tz-link.htm (href): Update shapefile citations.
Reported by Guy Harris in
<http://mm.icann.org/pipermail/tz/2013-September/019974.html>.
2013-09-05 11:45:20 -07:00
f1234d5dd5 * newctime.3: Fix typos reported by Paul Goyette. 2013-09-05 08:17:41 -07:00
b9fe626167 * Theory: Say that excluding 'backward' should not affect other data.
Suggested by Stephen Colebourne in
<http://mm.icann.org/pipermail/tz/2013-September/019939.html>.
2013-09-05 07:46:03 -07:00
0729dfdfa0 * newtzset.3: Fix misspelling of "newctime" in previous patch. 2013-09-05 07:07:58 -07:00
10a38b7ee2 * newctime.3, newstrftime.3, newtzset.3, zdump.8: Explain UT vs UTC better.
Suggested by Steve Allen in
<http://mm.icann.org/pipermail/tz/2013-September/019924.html>.
2013-09-05 07:03:28 -07:00