: <i>[clock scan]: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13</i> plus 8 other changes
by
.
D 2026-10-20T16:15:11.297
J assignee jan.nijtmans
J closedate 2461334.1772140856
J closer jan.nijtmans
J comment <nowiki>[clock\sscan]</nowiki>\sputs\sthe\shalf-hour\szones\sNFT,\sNST,\sNDT,\sIT,\sIST,\sJT,\sCAST\sand\sCADT\s30\sminutes\soff:\r\n\r\n<verbatim>\r\n%\sclock\sformat\s[clock\sscan\s"2026-01-15\s12:00\sIST"]\s-format\s%H:%M\s-gmt\s1\r\n07:00\r\n</verbatim>\r\n\r\nThe\sexpected\sresult\sis\s06:30.\sFor\sNST\s(Newfoundland),\s12:00\sgives\s15:00\sinstead\sof\s15:30.\r\n\r\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.\r\n\r\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 icomment Fixed\sin\s[6a5a4260ee|trunk],\score-9-0-branch\sand\score-8-6-branch\r\n\r\nMany\sthanks!
J login jan.nijtmans
J mimetype text/x-fossil-wiki
J resolution Fixed
J status Closed
K e580d8372b585aab98deb370bbc9387c86add2f8
U jan.nijtmans
Z d142f83e88832ae9841ae100b140254d