1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2026-05-06 22:21:38 +00:00
Commit Graph

3246 Commits

Author SHA1 Message Date
Paul Eggert
a3129e54ee * tzfile.h (TZ_MAX_TIMES), NEWS: Increase from 1200 to 2000.
This lets localtime handle Troll station.  Hack suggested by Zefram.
2014-03-20 18:41:02 -07:00
Paul Eggert
725779ad2f Remove TZ_MAX_TIMES restriction in zic.c.
This lets zic handle the time rules of Troll station,
Antarctica.  Adapted from a fix by Zefram in:
http://mm.icann.org/pipermail/tz/2014-March/020759.html
* zic.c (timecnt_alloc): New static var.
(attypes): Now a pointer to an array, not a fixed size array.
(writezone, addtt): Don't assume the number of times is less than
TZ_MAX_TIMES.
* NEWS: Document this.
2014-03-20 18:11:23 -07:00
Paul Eggert
f3ea6c6f84 Check for integer overflow errors in zic.
Also, allocate memory faster by growing buffers by a factor of 1.5
each time, rather than simply adding 1 to the size.
* private.h (SIZE_MAX): New macro, for older systems lacking it.
* zic.c (nrules_alloc, nzones_alloc, nlinks_alloc): New static vars.
(memory_exhausted, size_product, growalloc): New functions.
(memcheck, inrule, inzsub, inlink, getfields): Use them.
2014-03-20 14:34:32 -07:00
Paul Eggert
45badd3cb0 Fix overallocation problem in zic.
* zic.c (writezone), NEWS: Give 'writetype' TX_MAX_TYPES entries,
not TZ_MAX_TIMES.  (Thanks to Zefram.)
2014-03-20 13:35:02 -07:00
Paul Eggert
6c44b67414 Morocco's 2014 DST start will be as predicted.
* africa (Morocco), NEWS: Document this.
(Thanks to Sebastien Willemijns.)
2014-03-19 22:41:49 -07:00
Paul Eggert
bb203f1bb0 Crimea switches to Moscow time.
* europe (Europe/Simferopol), NEWS:
Crimea switches to MSK on 2014-03-30 at 02:00 local time.
(Thanks to Alexander Krivenyshev.)
* zone.tab: Move its zone.tab entry from UA to RU.
2014-03-19 22:27:24 -07:00
Paul Eggert
fc140d7eba * NEWS: Give proper credit for Tuesday/Thursday typo fix. 2014-03-14 00:09:42 -07:00
Paul Eggert
3f0f945c17 Fix Tuesday/Thursday typo in tzset man page.
* newtzset.3 (DESCRIPTION), NEWS: Fix typo in description of Israel time.
Reported by Mike Frysinger for glibc in:
https://sourceware.org/ml/libc-alpha/2014-03/msg00326.html
2014-03-13 17:30:17 -07:00
Paul Eggert
edde76c952 * australasia, NEWS: Comment re Johnston Island time in the 1960s.
(Thanks to Lyle McElhaney.)
2014-03-12 21:31:59 -07:00
Paul Eggert
6e8bcc7d74 Fix misstatement about Microsoft Windows support.
* tz-link.htm, NEWS: Fix misstatement about which part of the
Microsoft Windows software universe supports tz database names.
(Thanks to Donald MacQueen.)
2014-03-10 16:48:29 -07:00
Paul Eggert
ff4e892f5d Release tzcode2014a and tzdata2014a.
* NEWS, Makefile (VERSION): Increase to 2014a.
2014a
2014-03-07 23:32:02 -08:00
Paul Eggert
c21d10b11e Update tz-link.htm.
* tz-link.htm, NEWS: Add Time.is (thanks to Even Scharning), WX-now
(thanks to David Braverman), TZ4Net (thanks to Matt Johnson).
Remove Simple Timer + Clocks.
2014-03-07 23:26:55 -08:00
Paul Eggert
b69ac5849b Improve commentary for Trinidad and Tobago's links.
* southamerica (America/Port_of_Spain): Add commentary for links.
* NEWS: Document this.
2014-03-07 22:35:28 -08:00
Paul Eggert
7fc9e6e84f NEWS: Document previous change. 2014-03-07 22:30:59 -08:00
Paul Eggert
358183b3b7 Ukraine's time zone changes were incorrect for 1990/1.
(Thanks to Vladimir in Moscow via Alois Treindl.)
* europe (Europe/Kiev): Omit 1990-01-01 transition.
1990-07-01 transition was to EEST, not EET.  EEST ended
1991-09-29 03:00.
2014-03-07 22:22:43 -08:00
Paul Eggert
57738f30c7 Mention recent Paraguay decree.
* southamerica (Para): Add comment for Paraguay's Decree 1264.
(Thanks to Carlos Raul Perasso.)
* NEWS: Document this.
2014-03-07 21:44:40 -08:00
Paul Eggert
d3306708aa Israel DST transitions were off by a day in 1988.
(Thanks to Avigdor Finkelstein.)
* asia (Zion): Add 1 to the 1988 transition dates.
* NEWS: Document this.
2014-03-07 21:37:29 -08:00
Paul Eggert
4fcb1324e3 Update some web links.
* tz-link.htm: Mention zeitverschiebung.net (thanks to Martin
Jaeger) and the timezone-olson Haskell package.  Remove moribund
link to daylight-savings-time.info.
* NEWS: Document this.
2014-02-19 14:37:21 -08:00
Paul Eggert
12bcb1621c Chile: 2014 official DST follows our prediction.
(Thanks to Jose Miguel Garrido.)
* southamerica (Chile), NEWS: Document this.
2014-02-19 10:55:42 -08:00
Paul Eggert
4f73102117 Europe/Istanbul: Simplify recent change. (Thanks to Tim Parenti.)
* europe (Turkey): Revert previous change.
(Europe/Istanbul): Record 2014 the same way we did 2011; it's simpler.
* NEWS: Document this.
2014-02-19 10:44:11 -08:00
Paul Eggert
377543e46e Turkey begins DST on 2014-03-31, not 03-30.
(Thanks to Faruk Pasin.)
* europe (Turkey): New rule for spring 2014.
(Europe/Istanbul): Use it.
* NEWS: Document this.
2014-02-17 22:20:59 -08:00
Paul Eggert
a55fda9248 Mention Maggiolo's map of solar vs standard time.
* tz-link.htm: Add URL and description.  (Thanks to Arthur David Olson.)
* NEWS: Document this.
2014-02-02 13:19:27 -08:00
Paul Eggert
36dbd2c201 Make tz-link.htm more up-to-date.
* tz-link.htm: Mention xCal and jCal.
Mention Microsoft Windows 8.1 support for tz names.
CLDR data is available in both XML and JSON form.
Update two links (thanks to Oscar van Vlijmen).
Fix some formatting glitches, e.g., remove random newlines from
abbr elements' title attributes.
* NEWS: Document this.
2014-01-29 21:24:49 -08:00
Paul Eggert
8dbbeb507e Simplify some ALL_STATE and PCTS ifdefs.
* Makefile (GCC_DEBUG_FLAGS): Add -Wno-address and -Wno-cast-qual.
Otherwise, GCC 4.8.1 complains about some of the following changes.
* localtime.c (wildabbr): Now const.  This is a tiny bit more
efficient, POSIX allows it, and the ALL_STATE simplifications
below make use of it.  All uses changed to cast if needed.
(settzname, tzload, localsub, gmtsub, timesub, time2sub, time1):
Protect less code with ALL_STATE; this is simpler and doesn't
change behavior (or, these days, efficiency).
(time1): Simplify the PCTS ifdef, and explain what PCTS is.
2014-01-17 22:42:22 -08:00
Paul Eggert
7257f94960 Fix date typo in comment. (Thanks to Tim Parenti.) 2014-01-17 22:04:27 -08:00
Paul Eggert
3e831e3eab * tz-link.htm: Add Symbian and fix some layout problems. 2014-01-17 17:59:00 -08:00
Paul Eggert
284f20a733 Fiji ends DST at 02:00, not 03:00.
* australasia (Fiji): Move fall-back time from 03:00 to 02:00
starting this year.  (Thanks to Steffen Thorsen.)
* NEWS: Document this.
2014-01-10 08:05:24 -08:00
Paul Eggert
add863bcde Make 'make check_web' work with Ubuntu 13.10 by default.
* Makefile (SGML_CATALOG_FILES): HTML4.cat moved in Ubuntu.
* NEWS: Document this.
2014-01-02 13:20:49 -08:00
Paul Eggert
a4a5ceda02 Fix another 'localtime' initialization bug.
* localtime.c (tzload) [ALL_STATE]: Initialize sp->goback
and sp->goahead even if memory allocation fails.
(tzload, tzsetwall, tzset, gmtsub) [ALL_STATE]:
Use malloc, not calloc, since the !ALL_STATE code has to
work with reused storage anyway.
* NEWS: Document Logan Chien's fix.
2014-01-02 13:16:39 -08:00
Logan Chien
953da20e25 Fix initialization bug in localtime.
Problem reported by Logan Chien in
<http://mm.icann.org/pipermail/tz/2014-January/020534.html>.
* localtime.c (tzparse): Initialize sp->defaulttype to 0.
2014-01-02 12:56:02 -08:00
Paul Eggert
f9aa3436d8 Give the boundary of the US Pacific time zone more accurately.
(Thanks to Alan Mintz.)
* northamerica (America/Los_Angeles): Fix comment.
* NEWS: Document this.
2013-12-24 17:50:24 -08:00
Paul Eggert
1f4030f845 Release tzcode2013i and tzdata2013i.
* NEWS, Makefile (VERSION): Increase to 2013i.
2013i
2013-12-17 07:26:04 -08:00
Paul Eggert
b0cde690c6 Asia/Amman: Jordan's Dec. 20 transition is DST, not standard time
(Thanks to Steffen Thorsen.)
* asia (Jordan): Transition is at 00:00, not 00:00s.
* NEWS: Document this.
2013-12-11 12:29:10 -08:00
Paul Eggert
ed8f3bd6d2 Asia/Amman: Jordan reverts to standard time on Dec. 20
* asia (Jordan, Asia/Amman): Jordan switches back to standard time
on 2013-12-20.  (Thanks to Steffen Thorsen.)  Assume this is at
00:00s, and that the previous schedule resumes next year.
* NEWS: Document this.
2013-12-11 11:30:51 -08:00
Paul Eggert
f0b7563dc2 America/Havana: fix spring 2004 transition
* northamerica (Cuba), NEWS: In 2004, Cuba began DST on March 28,
not April 4.  (Thanks to Steffen Thorsen.)
2013-11-13 01:00:16 -08:00
Paul Eggert
1b2656774f build: remove NOSOLAR option
The current tzdata now goes to 17, which is uncomfortably close to
the NOSOLAR limit of 20.
* Makefile (CFLAGS): Remove NOSOLAR comment.
* tzfile.h (TZ_MAX_TYPES): Ignore NOSOLAR; always default to 256.
* NEWS: Document this.
2013-11-13 00:49:41 -08:00
Paul Eggert
a9ac0f6938 maint: remove solar-time experiment
It occasionally causes confusion, e.g.,
<http://mm.icann.org/pipermail/tz/2013-November/020486.html>.
* Makefile (SDATA): Remove.  All uses removed.
* newctime.3 (NOTES): Remove reference to solar time.
* solar87, solar88, solar89: Remove.
* NEWS: Document this.
2013-11-13 00:49:41 -08:00
Paul Eggert
d13040f09f * NEWS: Describe Noda Time change to tz-link. 2013-10-28 15:13:43 -07:00
Paul Eggert
eb03aa784c * tz-link.htm: Mention Noda Time (thanks to Matt Johnson).
Also, use abbr and endashes more consistently, and call it
a "web page" rather than a "file".
2013-10-28 14:27:22 -07:00
Paul Eggert
52d3619cc1 Release tzcode2013h and tzdata2013h.
* NEWS, Makefile (VERSION): Increase to 2013h.
2013h
2013-10-25 15:34:35 -07:00
Paul Eggert
baea52df7a Africa/Tripoli: switch to EET sans DST as of 02:00 today
(Thanks to Even Scharning for the heads-up.)
* africa (Libya): DST rules are for 2013 only.
(Africa/Tripoli): Switch to EET without DST as of 02:00 today.
* NEWS: Document this.
2013-10-25 08:02:57 -07:00
Paul Eggert
0d85102c8b Western Sahara uses Moroccan DST rules.
* africa (Africa/El_Aaiun): Assume it's been using Moroccan DST
rules ever since Morocco took over.  (Thanks to Gwillim Law.)
* NEWS: Document this.
2013-10-23 23:42:15 -07:00
Paul Eggert
398eb5d16c * tz-link.htm: Update URLs.
* NEWS: Document the above.
2013-10-21 00:16:15 -07:00
Paul Eggert
2c0ed4f527 * NEWS: Document recent localtime and zdump fixes. 2013-10-20 23:04:26 -07:00
Paul Eggert
45bc0b2552 localtime: fix overflow bugs for 32-bit unsigned time_t
This fixes a longstanding test-case failure with
'make check_time_t_alternatives'.
* localtime.c (detzcode64): Return int_fast64_t, not time_t,
for the benefit of platforms where time_t is narrower than 64 bits.
The distinction matters if time_t is 32-bit unsigned.
Simplify the shifts and masks.
(tzload): Fix the check for overflow when storing the loaded time
value into a time_t object.  The old code didn't work when
time_t was an unsigned 32-bit quantity.
(transtime): Return the offset from the start of the year,
not the offset since the Epoch, since the former cannot overflow
but the latter can.  Caller changed.
(tzparse): Check for overflow more carefully when computing
time stamps.  The old code didn't work for 32-bit unsigned values,
in unusual situations such as Pacific/Fiji and Pacific/Auckland
for times past 2038.
(increment_overflow_time): New function.
2013-10-20 16:51:18 -07:00
Paul Eggert
cfc4f57d98 zdump: remove unportable assumption about sscanf and overflow
* zdump.c (strtoimax) [!INTMAX_MAX]: Define like private.h does.
(SCNdMAX): Remove; no longer used.
(main): Use strtoimax, not sscanf with SCNdMAX, as strtoimax has
well-defined behavior when the input number is out of numeric range.
2013-10-20 16:20:23 -07:00
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