Skip to content
Tcl Source Code Artifact [7305ad4d23]
Login

Artifact [7305ad4d23]

Artifact 7305ad4d23fe663ab81bf415badf36687e423e27ac9f8715248f65a425b2d7af:

Ticket change [7305ad4d23] - New ticket [e580d8372b585aab|e580d8372b] <i>`clock scan`: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13</i>. by serhiy.storchaka on 2026-10-17 10:56:03.
D 2026-10-17T10:56:03.956
J cmimetype text/x-fossil-wiki
J comment <nowiki>[clock\sscan]</nowiki>\sputs\sthe\shalf-hour\szones\sNFT,\sNST,\sNDT,\sIT,\sIST,\sJT,\sCAST\sand\sCADT\s30\sminutes\soff:\n\n<verbatim>\n%\sclock\sformat\s[clock\sscan\s"2026-01-15\s12:00\sIST"]\s-format\s%H:%M\s-gmt\s1\n07:00\n</verbatim>\n\nThe\sexpected\sresult\sis\s06:30.\sFor\sNST\s(Newfoundland),\s12:00\sgives\s15:00\sinstead\sof\s15:30.\n\nThe\sTimezoneTable\sin\sgeneric/tclGetDate.y\swrites\sthese\soffsets\sas\s<tt>HOUR(11/2)</tt>,\s<tt>HOUR(7/2)</tt>\sand\sso\son.\sWhile\sthe\smacro\swas\s<tt>((int)\s(60\s*\sx))</tt>,\sthis\sexpanded\sto\s<tt>60\s*\s11/2</tt>\s=\s330.\s[2bb7cd72c8]\s(fix\sfor\s[da6f155ca4],\s2022)\sparenthesized\sx,\sso\snow\s11/2\sis\scomputed\sfirst\sas\san\sinteger\sdivision\sand\sgives\s5.\n\nThis\sis\sa\sregression\sin\s8.6.13:\s8.6.12\sgives\sthe\scorrect\stimes.\sIt\sis\spresent\sin\s8.6.18,\s9.0.5\sand\s9.1.0.
J foundin 8.6.18,\s9.0.5,\s9.1.0
J login serhiy.storchaka
J priority 5\sMedium
J resolution None
J severity Minor
J status Open
J subsystem 06.\sTime\sMeasurement
J title `clock\sscan`:\shalf-hour\stime\szones\s(IST,\sNST,\sCAST,\s…)\sare\s30\sminutes\soff\ssince\s8.6.13
J type Bug
K e580d8372b585aab98deb370bbc9387c86add2f8
U serhiy.storchaka
Z a197fa9e3d3f14bc3031507739d12192