Skip to content
Tcl Source Code Artifact [9122a23a28]
Login

Artifact [9122a23a28]

Artifact 9122a23a28d586f87385e15fe47d36f3f2f3a04e4e1383268acf1b0fd7343979:

Ticket change [9122a23a28] - Ticket [51aa53616067cb63|51aa536160] <i>clock timezone tests fail when ran against system tzdata</i> status still Open with 3 other changes by sebres on 2026-03-04 17:36:14.
D 2026-03-04T17:36:14.762
J icomment OK,\sI\scan\sconfirm\sthat\sa\slot\sof\stests\sfailed\sif\sthere\sis\sno\s"tzdata\sin\sthe\slibrary\s(as\swe\shave\s/usr/share/zoneinfo)".\r\n\r\nBesides\smentioned\sissues,\sthere\sare\sseveral\sothers...<br/>\r\nMany\sof\sthem\sare\ssimply\sfixed\sby\sremoval\sof\scolon\sbefore\sthe\sTZ-name.<br/>\r\nAnother\scan\sbe\sfixed\sby\sadding\sa\sconstraint\sthat\schecking\swhether\stcl's\stzdata\sis\savailable,\sbut...\r\n\r\nBut\sI\ssee\sfailures\son\sall\stests\scovering\sdaylight\sswitch,\stimestamps\saround\sDST-hole,\setc.\sAnd\ssuch\sfailures\sare\sgenerally\snot\sOK\sin\smy\sopinion.\sFor\sinstance:\r\n<code><pre\sstyle="margin-left:15pt">\r\n====\sclock-34.69.2.vm:1\srelative\stime,\sdaylight\sswitch\sFAILED\r\n====\sContents\sof\stest\scase:<br/>\r\n\s\s\s\sset\sbase\s[clock\sscan\s"03/27/2016"\s-timezone\sCET]\r\n\s\s\s\sset\sres\s{}\r\n\s\s\s\slappend\sres\s[clock\sformat\s[clock\sscan\s"+1\shour"\s\s-base\s$base\s-timezone\sCET]\s-timezone\sCET\s-format\s{%Y-%m-%d\s%H:%M:%S\s%Z}]\r\n\s\s\s\slappend\sres\s[clock\sformat\s[clock\sscan\s"+2\shour"\s\s-base\s$base\s-timezone\sCET]\s-timezone\sCET\s-format\s{%Y-%m-%d\s%H:%M:%S\s%Z}]\r\n<br/>----\sResult\swas:\r\n{2016-03-27\s01:00:00\s+0100}\s{2016-03-27\s02:00:00\s+0100}\r\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\r\n{2016-03-27\s01:00:00\sCET}\s{2016-03-27\s03:00:00\sCEST}\r\n====\sclock-34.69.2.vm:1\sFAILED\r\n</pre></code>\r\nI\sunderstand\sthat\sit\suses\snumeric\sTZ\sby\srepresenting\sits\sname\s(e.\sg.\s+0100\sinstead\sof\sCET),\sbut\s<b>the\s2nd\stimestamp\sis\scompletely\swrong</b>...<br/>\r\nBecause\s"2016-03-27\s<b\sstyle="color:red">02:00:00\s+0100</b>"\sdoesn't\sexist\s<b>in\sCET</b>\s(it\sis\sin\sthe\sDST-hole)\sand\sbasically\sit\sshall\sbe\s"2016-03-27\s<b\sstyle="color:green">03:00:00\s+0200</b>"\s(since\sit\sshall\sswitch\sto\sCEST).\r\n\r\nSo\seither\ssome\saliasing\sis\swrong\sin\szones\sof\s"/usr/share/zoneinfo"\s(e.\sg.\sCET\sis\sreally\san\salias\sto\s+0100,\swithout\sDST-switches\setc).<br/>\r\nOr\swe\shave\ssomething\sfundamentally\swrong\sin\shandling\sof\ssystem\stimezones.\r\n\r\nThus\sthe\sissue\sgrows\sand\sgrows.<br/>\r\nAt\sthe\smoment,\sI\scan\sonly\ssay\sthat\susage\sof\sTcl\swithout\sits\stzdata\sis\snot\sadvisable.
J login sebres
J mimetype text/x-fossil-wiki
K 51aa53616067cb63900b17ca1d71f07b094ffa1a
U sebres
Z e48c6c9a5138ea56a7230191502ad37b