diff options
author | Kevin B Kenny <kennykb@acm.org> | 2011-03-14 21:32:26 (GMT) |
---|---|---|
committer | Kevin B Kenny <kennykb@acm.org> | 2011-03-14 21:32:26 (GMT) |
commit | 8de1e1fbccf76d8a4a83722faaac940f23cd299c (patch) | |
tree | 0ad50bf10d44feb58fd93d467470a2542274812f /tools/tclZIC.tcl | |
parent | d3cdcae534ac36ff105d99cab68e7c6328bd63f2 (diff) | |
download | tcl-8de1e1fbccf76d8a4a83722faaac940f23cd299c.zip tcl-8de1e1fbccf76d8a4a83722faaac940f23cd299c.tar.gz tcl-8de1e1fbccf76d8a4a83722faaac940f23cd299c.tar.bz2 |
Import Olson's tzdata2011d and fix a tclZIC.tcl bug that made the import fail.
* tools/tclZIC.tcl (onDayOfMonth): Allow for leading zeroes
in month and day so that tzdata2011d parses correctly.
* library/tzdata/America/Havana:
* library/tzdata/America/Juneau:
* library/tzdata/America/Santiago:
* library/tzdata/Europe/Istanbul:
* library/tzdata/Pacific/Apia:
* library/tzdata/Pacific/Easter:
* library/tzdata/Pacific/Honolulu: tzdata2011d
Diffstat (limited to 'tools/tclZIC.tcl')
-rwxr-xr-x | tools/tclZIC.tcl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/tclZIC.tcl b/tools/tclZIC.tcl index 6169696..1b19d82 100755 --- a/tools/tclZIC.tcl +++ b/tools/tclZIC.tcl @@ -394,6 +394,9 @@ proc parseON {on} { #---------------------------------------------------------------------- proc onDayOfMonth {day year month} { + scan $day %d day + scan $year %d year + scan $month %d month set date [::tcl::clock::GetJulianDayFromEraYearMonthDay \ [dict create era CE year $year month $month dayOfMonth $day] \ 2361222] |