Skip to content
Tcl Source Code History Of Ticket e580d8
Login

History Of Ticket e580d8

Artifacts Associated With Ticket e580d8

  1. Ticket change [7305ad4d23] (rid 258538) by serhiy.storchaka on 2026-10-17 10:56:03:

    1. cmimetype initialized to: "text/x-fossil-wiki"
    2. 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.
      
    3. foundin initialized to: "8.6.18, 9.0.5, 9.1.0"
    4. login: "serhiy.storchaka"
    5. priority initialized to: "5 Medium"
    6. resolution initialized to: "None"
    7. severity initialized to: "Minor"
    8. status initialized to: "Open"
    9. subsystem initialized to: "06. Time Measurement"
    10. title initialized to:
      `clock scan`: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13
      
    11. type initialized to: "Bug"
  2. Ticket change [568fcf4332] (rid 258539) by serhiy.storchaka on 2026-10-17 10:56:10:

    1. login: "serhiy.storchaka"
    2. title changed to:
      [clock scan]: half-hour time zones (IST, NST, CAST, …) are 30 minutes off since 8.6.13
      
  3. Ticket change [41e9562473] (rid 258547) by serhiy.storchaka on 2026-10-17 10:58:10:

    1. 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.
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [d0b7dbcc26] (rid 259512) by jan.nijtmans on 2026-10-20 16:15:11:

    1. assignee changed to: "jan.nijtmans"
    2. closedate changed to: "2461334.1772140856"
    3. closer changed to: "jan.nijtmans"
    4. 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.
      
    5. icomment:
      Fixed in [6a5a4260ee|trunk], core-9-0-branch and core-8-6-branch
      
      Many thanks!
      
    6. login: "jan.nijtmans"
    7. mimetype: "text/x-fossil-wiki"
    8. resolution changed to: "Fixed"
    9. status changed to: "Closed"
  5. Ticket change [21645b3221] (rid 259525) by serhiy.storchaka on 2026-10-20 16:32:50:

    1. icomment:
      Jan,
      
      Thanks for merging the &#91;clock scan&#93; 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
      
    2. login: "serhiy.storchaka"
    3. mimetype: "text/x-fossil-wiki"
  6. Ticket change [21f0304980] (rid 259543) by serhiy.storchaka on 2026-10-20 18:11:29:

    1. submitter changed to: "serhiy.storchaka"