Skip to content
Tcl Source Code View Ticket
Login

View Ticket

tzdata update breaks tests clock-5.3[123]

Closed / Fixed63eff8332eef8a21f5da362c6fc6325f39198875Created 9 years agoUpdated 9 years ago
Descriptionplain2017-10-24 12:31:52
tzdata2017c includes a change mentioned here

http://mm.icann.org/pipermail/tz/2017-July/025203.html

Apparently it's a correction to a false claim in earlier
releases that Detroit observed DST in 1967.

Just our luck, 3 tests in our test suite use Detroit in
1967 as an example to test DST boundary operations, and...

==== clock-5.31 time zone boundary case 1967-06-14 03:00:00 FAILED
==== Contents of test case:

    clock format -80499600 -format {%H:%M:%S %z %Z}  -timezone :America/Detroit

---- Result was:
02:00:00 -0500 EST
---- Result should have been (exact matching):
03:00:00 -0400 EDT
==== clock-5.31 FAILED



==== clock-5.32 time zone boundary case 1967-06-14 03:00:01 FAILED
==== Contents of test case:

    clock format -80499599 -format {%H:%M:%S %z %Z}  -timezone :America/Detroit

---- Result was:
02:00:01 -0500 EST
---- Result should have been (exact matching):
03:00:01 -0400 EDT
==== clock-5.32 FAILED



==== clock-5.33 time zone boundary case 1967-10-29 01:59:59 FAILED
==== Contents of test case:

    clock format -68666401 -format {%H:%M:%S %z %Z}  -timezone :America/Detroit

---- Result was:
00:59:59 -0500 EST
---- Result should have been (exact matching):
01:59:59 -0400 EDT
==== clock-5.33 FAILED
dgp Ticket [63eff8332e]: 3 changes [History diff]2017-10-24 12:32:49
kbkwiki2017-10-24 13:37:38

Right you are. Solution is simply to delete the failing three tests (and the three tests testing the other boundary of the nonexistent time change).

Log in (anonymous is fine) to add a comment.