Artifacts Associated With Ticket e580d8
Ticket change [7305ad4d23] (rid 258538) by serhiy.storchaka on 2026-10-17 10:56:03:
- cmimetype initialized to: "text/x-fossil-wiki"
- comment initialized to:
<nowiki>[clock scan]</nowiki> puts the half-hour zones NFT, NST, NDT, IT, IST, JT, CAST and CADT 30 minutes off: <verbatim> % clock format [clock scan "2026-01-15 12:00 IST"] -format %H:%M -gmt 1 07:00 </verbatim> The expected result is 06:30. For NST (Newfoundland), 12:00 gives 15:00 instead of 15:30. The TimezoneTable in generic/tclGetDate.y writes these offsets as <tt>HOUR(11/2)</tt>, <tt>HOUR(7/2)</tt> and so on. While the macro was <tt>((int) (60 * x))</tt>, this expanded to <tt>60 * 11/2</tt> = 330. [2bb7cd72c8] (fix for [da6f155ca4], 2022) parenthesized x, so now 11/2 is computed first as an integer division and gives 5. This is a regression in 8.6.13: 8.6.12 gives the correct times. It is present in 8.6.18, 9.0.5 and 9.1.0.
- foundin initialized to: "8.6.18, 9.0.5, 9.1.0"
- login: "serhiy.storchaka"
- priority initialized to: "5 Medium"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- subsystem initialized to: "06. Time Measurement"
- title initialized to:
`clock scan`: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13
- type initialized to: "Bug"
Ticket change [568fcf4332] (rid 258539) by serhiy.storchaka on 2026-10-17 10:56:10:
- login: "serhiy.storchaka"
- title changed to:
[clock scan]: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13
Ticket change [41e9562473] (rid 258547) by serhiy.storchaka on 2026-10-17 10:58:10:
- icomment:
Proposed fix in branch [/timeline?r=clock-half-hour-zones|clock-half-hour-zones]: the table entries now divide outside the macro, <tt>HOUR(11)/2</tt>, which is exact. Test clock-34.20.22.
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [d0b7dbcc26] (rid 259512) by jan.nijtmans on 2026-10-20 16:15:11:
- assignee changed to: "jan.nijtmans"
- closedate changed to: "2461334.1772140856"
- closer changed to: "jan.nijtmans"
- comment changed to:
<nowiki>[clock scan]</nowiki> puts the half-hour zones NFT, NST, NDT, IT, IST, JT, CAST and CADT 30 minutes off: <verbatim> % clock format [clock scan "2026-01-15 12:00 IST"] -format %H:%M -gmt 1 07:00 </verbatim> The expected result is 06:30. For NST (Newfoundland), 12:00 gives 15:00 instead of 15:30. The TimezoneTable in generic/tclGetDate.y writes these offsets as <tt>HOUR(11/2)</tt>, <tt>HOUR(7/2)</tt> and so on. While the macro was <tt>((int) (60 * x))</tt>, this expanded to <tt>60 * 11/2</tt> = 330. [2bb7cd72c8] (fix for [da6f155ca4], 2022) parenthesized x, so now 11/2 is computed first as an integer division and gives 5. This is a regression in 8.6.13: 8.6.12 gives the correct times. It is present in 8.6.18, 9.0.5 and 9.1.0.
- icomment:
Fixed in [6a5a4260ee|trunk], core-9-0-branch and core-8-6-branch Many thanks!
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [21645b3221] (rid 259525) by serhiy.storchaka on 2026-10-20 16:32:50:
- icomment:
Jan, Thanks for merging the [clock scan] half-hour time zone fix. The new changes.md line on trunk (268f74c734, line 48) links to the Tk tracker: <verbatim> - [[clock scan] put the half-hour time zones 30 minutes off](https://core.tcl-lang.org/tk/tktview/e580d8)</verbatim> It should be https://core.tcl-lang.org/tcl/tktview/e580d8. The 9.0 entry is correct. Thanks also for fixing my "Merge mark" commit messages; I'll write "Close fork" next time. Serhiy
- login: "serhiy.storchaka"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [21f0304980] (rid 259543) by serhiy.storchaka on 2026-10-20 18:11:29:
- submitter changed to: "serhiy.storchaka"