Commit Graph
3200 Commits
Author SHA1 Message Date
Paul Eggert 59257b1b04 Acre and (we guess) western Amazonas will switch from UTC-4 to UTC-5.
* southamerica (America/Rio_Branco, America/Eirunepe): Switch from
UTC-4 to UTC-5 on November 10.  (Thanks to Steffen Thorsen).
* NEWS: Document this.
2013-10-17 07:30:00 -07:00
Paul Eggert 43909bd2a3 * tz-link.htm, NEWS: Mention TimezoneJS.Date (thanks to Jim Fehrle).
Also, update Joda Time URL.
2013-10-08 08:58:43 -07:00
Paul Eggert 0f9614ba9e * tzselect.ksh (doselect): Prompt to stderr, not stdout.
(Thanks to Patrick 'P. J.' McDermott.)
2013-10-06 12:28:30 -07:00
Paul Eggert 63b0906c92 * .gitignore: Ignore *.a files. 2013-10-06 02:25:29 -07:00
Paul Eggert 868ed00c10 tzselect: work around an old BusyBox awk bug
Patch by Patrick 'P. J.' McDermott in
<http://mm.icann.org/pipermail/tz/2013-October/020444.html>.
* tzselect.ksh: Replace awk -F options with FS assignments.
Before version 1.21.0, BusyBox awk didn't unescape the argument to
the -F option.  As a result, tzselect couldn't parse tables with
such versions of BusyBox awk.  See
<https://bugs.busybox.net/show_bug.cgi?id=5126> and
<http://git.busybox.net/busybox/commit?id=ea664dd>.
* NEWS: Document this.
2013-10-06 02:24:36 -07:00
Paul Eggert be06aa48db tzselect: port to /bin/sh
Problem reported by Patrick 'P. J.' McDermott in
<http://mm.icann.org/pipermail/tz/2013-October/020441.html>.
This code is quite a bit different from what he proposed.
* tzselect.ksh: Rewrite so that it should work with /bin/sh on
common platforms.  For portability to Solaris 9 /bin/sh, use
`...`, not $(...), and avoid $((...)).
(doselect): New function.  Use this instead of plain 'select'.
Callers no longer need to worry whether it sets the var to empty.
* Makefile, NEWS: Document this.
2013-10-06 02:11:51 -07:00
Paul Eggert b9b27d5b7e * africa (Morocco): Fix off-by-one typo in comment. 2013-10-03 00:22:09 -07:00
Paul Eggert 2ecfc39ab6 Fix problem with Morocco time stamps after 2037.
Problem reported by Yoshito Umaoka in
<http://mm.icann.org/pipermail/tz/2013-October/020423.html>.
* africa (Morocco): Stop after 2038, not 2037.
* NEWS: Document this.
2013-10-02 18:43:31 -07:00
Paul Eggert a7a55e113d * NEWS: Document recent Makefile changes. 2013-10-02 11:29:21 -07:00
Paul Eggert 1d67c5bfca build: Makefile fixes; let user give AR and RANLIB; local libtz.a
* Makefile: Let the user override AR, and build libtz.a before
installing it, as suggested by Michael Forney in
<https://github.com/eggert/tz/pull/3>.  Also, let the user
override RANLIB.  Modernize a bit by assuming POSIX.2-1992 or
later; this is safe nowadays and simplifies the libtz.a business.
And treat 'leapseconds' more like we used to, since it's
machine-independent a 'make clean' doesn't need to remove it.
(TZLIB): Remove.
(AR, RANLIB): New macros.
(TABDATA): Add leapseconds, so that 'make' builds it by default.
(DATA): Remove leapseconds, since $(TABDATA) now has it.
(all): Depend on libtz.a, not $(LIBOBJS).
(install): Install libtz.a using 'cp', like other files.
Also invoke $(RANLIB) on it, after installing.
Do not assume that TZDIR is not overridden.
(install, INSTALL, check_time_t_alternatives): Use 'mkdir -p', as
it's safe to assume nowadays (standardized in POSIX.2-1992).
(install, INSTALL): Prefer 'cp -f' to 'rm' followed by 'cp', as
it's safe to assume 'cp -f' nowadays (also standardized in POSIX.2-1992).
(libtz.a): Rename from $(DESTDIR)$(TZLIB), since we now build it here.
Use $(AR) rather than ar.
Use $(RANLIB) rather than trying to guess it.
(clean_misc): Do not remove 'leapseconds', as it's machine-independent.
(maintainer-clean): Remove 'leapseconds' here instead.
(clean, check_public): Standardize on 'rm -fr' rather than 'rm -f -r';
formerly the makefile was inconsistent.
(set-timestamps.out): Don't ignore failurs of the actual touch command.
2013-10-02 10:48:46 -07:00
Paul Eggert 1479cad711 * Makefile (TZCSRCS, TZDSRCS, DATESRCS): Remove; unused.
* NEWS: Document recent Makefile fixes.
2013-10-01 21:54:42 -07:00
Paul Eggert 132e8351b6 * Makefile (TZDSRCS, TZDOBJS): Interchange asctime.c and asctime.o.
(Thanks to Andrew Paprocki.)
2013-10-01 21:45:25 -07:00
Paul Eggert 17ca83e6f8 doc: mention TC TIMEZONE's draft timezone service protocol
(Thanks to Mike Douglass.)
* tz-link.htm, NEWS: Add info about this.
2013-10-01 15:40:52 -07:00
Paul Eggert 320239cf81 Release tzcode2013g and tzdata2013g.
* NEWS, Makefile (VERSION): Increase to 2013g.
2013g
2013-09-30 21:10:49 -07:00
Paul Eggert 22fe30e600 zic: restore missing diagnostic with 'zic -v'
* zic.c (outzone): Restore diagnostic that was inadvertently
suppressed by the 2013-09-08 change to the 400-years-hack.
This doesn't affect zic's binary output; it affects only the
diagnostics generated by 'zic -v'.  The problem evinced itself
with Asia/Tehran, which currently should generate a diagnostic,
but doesn't without this patch.
* NEWS: Document the above.
2013-09-30 19:41:02 -07:00
Paul Eggert 0a6a92937f Morocco changed start-of-DST from March to April.
* africa (Morocco): The spring-forward date was moved too,
to the last Sunday in March.
* NEWS: Document this.
2013-09-30 09:01:01 -07:00
Paul Eggert 4b556f8dc8 * Makefile (check_public): When rebuilding, make $(ENCHILADA)
as well as 'all', so that the *.txt files are built.
2013-09-29 23:45:06 -07:00
Paul Eggert a070443b0c * africa (Morocco): Fix typos in comments. 2013-09-29 21:52:19 -07:00
Paul Eggert fce6e0c0bd * africa (Morocco): Adjust predicted transitions in 2036-7
to match GNU Emacs predictions for Ramadan.
2013-09-29 21:48:09 -07:00
Paul Eggert c074178903 * NEWS: Add thanks for the PD issue. 2013-09-29 21:30:51 -07:00
Paul Eggert 0def5ed0fd Morocco changed end-of-DST from September to October.
* africa (Morocco): Morocco now ends DST the last Sunday in
October, not September.  (Thanks to Steffen Thorsen.)
* NEWS: Document the above.
2013-09-29 21:30:30 -07:00
Paul Eggert 399f16a1ac * README: Clarify BSD text.
(Thanks to Philip Newton.)
2013-09-26 06:54:26 -07:00
Paul Eggert 7896da414f * private.h: Fix typo in comment.
(Thanks to Philip Newton.)
2013-09-26 06:52:15 -07:00
Paul Eggert dad4eed8a8 build: port to MinGW and fix symlink bugs
MinGW problem reported by Theo Veenker in
<http://mm.icann.org/pipermail/tz/2013-September/020378.html>.
The patched code should work even on POSIXish hosts
where 'link' and 'symlink' fail for whatever reason,
e.g., if the destination file system is VFAT.
Also, the patch fixes some bugs when symlinks are used.
* Makefile (CFLAGS): Mention HAVE_LINK in the comment.
(TZDSRCS): Add asctime.o, since MinGW lacks asctime.
(TZDOBJS): Add asctime.c.
* private.h (HAVE_LINK): Default to 1.
* zic.c (link) [!HAVE_LINK]: New macro.
(symlink) [!HAVE_SYMLINK]: New macro.
(dolink): Fix some bugs when 'link' fails but 'symlink' succeeds.
Fall back on copying when both fail.
* NEWS: Document the above.
2013-09-26 00:35:00 -07:00
Paul Eggert a5851f83d3 main: distribute leapseconds in tzdata, and fix timestamps
Problem with leapseconds reported by Matt Burgess in
<http://mm.icann.org/pipermail/tz/2013-September/020379.html>
with a followup by Ian Abbott in
<http://mm.icann.org/pipermail/tz/2013-September/020383.html>.
* Makefile (MANTXTS): New macro.
(maintainer-clean): Use it.
(DOCS): Add it.
(DATA): Add 'leapseconds'.
(LEAP_DEPS): New macro.
(leapseconds): Use it.
(public): Don't depend on set-timestamps; each tarball does that
individually now, to allow for more parallelization.
(date.1.txt, newctime.3.txt, newstrftime.3.txt, newtzset.3.txt)
(time2posix.3.txt, tzfile.5.txt, tzselect.8.txt, zdump.8.txt)
(zic.8.txt): Depend on the corresponding non-.txt file.
$(MANTXTS): New rule.
(set-timestamps.out): Rename from set-timestamps, and make it a file,
so that it has its own timestamp; this avoids useless rework.
Depend on $(ENCHILADA) and ignore files under Git that are not
also listed in $(ENCHILADA).  Set the timestamp of 'leapseconds'
and each $(MANTXTS) to be the maximum of its dependencies, to avoid
timestamp churn in future tarballs.  Prefer touch -m, as we don't
care about access time here.
(tzcode$(VERSION).tar.gz, tzdata$(VERSION).tar.gz):
Depend on set-timestamps.out rather than the individual files,
so timestamps are set before creating the tarballs even when
make is parallelized.
(tzcode$(VERSION).tar.gz): Don't mention *.[1-8].txt explicitly,
since we now get $(MANTXTS) via $(DOCS).
* NEWS: Document the above.
2013-09-25 15:50:44 -07:00
Paul Eggert ca267f2db1 doc: document public-domain status of files, and streamline README
* Makefile (COMMON): Move README here ...
(DOCS): ... from here, as it talks about the public-domain status
of the files, and this should be in both tarballs.
* README: Add intro.  Mention public-domain status of files.
Remove and reorganize some obsolete text, e.g., move 1989 release
info from here to NEWS's tail.
* NEWS: Document the above.
2013-09-25 13:16:49 -07:00
Paul Eggert 7436d74387 Release tzcode2013f and tzdata2013f.
* NEWS, Makefile (VERSION): Increase to 2013f.
2013f
2013-09-24 23:42:08 -07:00
Paul Eggert 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
Paul Eggert 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
Paul Eggert 13c1a17683 * NEWS: Mention mawk bug and workaround. 2013-09-24 11:41:53 -07:00
Paul Eggert 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
Paul Eggert 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
Paul Eggert bdf636b211 * NEWS: Mention self and git tags. 2013-09-23 00:10:57 -07:00
Paul Eggert 928fb7ab7e * NEWS: Update release dates slightly; use "-", not "+" to connect. 2013-09-23 00:00:49 -07:00
Paul Eggert e6033febb1 * Makefile (DOCS): Add NEWS. 2013-09-21 16:26:59 -07:00
Paul Eggert e5e86decb9 * NEWS: New file. 2013-09-21 16:25:14 -07:00
Paul Eggert 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
Paul Eggert 5250212e82 * asia (Jordan, Asia/Amman): Guess that Jordan's change is permanent. 2013-09-21 08:54:30 -07:00
Paul Eggert ba0a5b4708 * newtzset.3: Capitalize more consistently. 2013-09-21 08:35:26 -07:00
Paul Eggert 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
Paul Eggert db6270a00d Release tzcode2013e and tzdata2013e.
* Makefile (VERSION): Increase to 2013e.
2013e
2013-09-19 23:50:04 -07:00
Paul Eggert b8e081b8ba * europe (Europe/Vaduz): Add confirming commentary from Alois Treindl. 2013-09-18 10:39:29 -07:00
Paul Eggert 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
Paul Eggert 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
Paul Eggert ce93b2490f * tzfile.5 (SEE ALSO): Mention zdump(8), zic(8). 2013-09-15 23:15:13 -05:00
Paul Eggert 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
Paul Eggert 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
Paul Eggert 4a0d6bb036 * europe: Fix comment misspelling in previous change. 2013-09-11 20:42:25 -07:00
Paul Eggert 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
Paul Eggert 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