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 | 842d7c2f42cb8a46aafada1fd0add90c2a43df12 (patch) | |
tree | 0ad50bf10d44feb58fd93d467470a2542274812f /tools | |
parent | 239abf0ab7563e5d28f23f66730382d44f3b45f1 (diff) | |
download | tcl-842d7c2f42cb8a46aafada1fd0add90c2a43df12.zip tcl-842d7c2f42cb8a46aafada1fd0add90c2a43df12.tar.gz tcl-842d7c2f42cb8a46aafada1fd0add90c2a43df12.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')
-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] |