Skip to content
Tcl Source Code History Of Ticket 882da1
Login

History Of Ticket 882da1

Artifacts Associated With Ticket 882da1

  1. Ticket change [4af9ad5f7f] (rid 235415) by jan.nijtmans on 2024-11-24 19:55:24:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      <pre>
      $ tclsh9.0
      % clock scan "Sun 2024-11-24 23:00"
      1732485600
      % clock scan "Sun 2024-11-24 24:00"
      unable to convert input string: invalid day of week
      </pre>
      
      This is incorrect. "24:00" is defined by IS0-8601 to be the last moment of the day. 2024-11-24 is still sunday.
      
      Problem introduced with [66e7fb75d9aebcdc|this commit]. Just before this commit, this happened:
      <pre>
      % clock scan "Sun 2024-11-24 23:00"
      1732485600
      % clock scan "Sun 2024-11-24 24:00"
      1732489200
      </pre>
      
      Which is correct: 2024-11-24 is on a sunday!
      
      So, I object to the part of the change which caused this.
      
    5. foundin initialized to: "8.7/9.0"
    6. is_private initialized to: "0"
    7. login: "jan.nijtmans"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "0c50e5320704d174412e57b873d8932de15303e0"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "jan.nijtmans"
    14. subsystem initialized to: "16. Commands A-H"
    15. title initialized to: "Wrong handling of "24:00" for weekdays"
    16. type initialized to: "Bug"
  2. Ticket change [4bbc3bc385] (rid 235416) by jan.nijtmans on 2024-11-24 19:56:39:

    1. assignee changed to: "sebres"
    2. login: "jan.nijtmans"
    3. mimetype: "text/plain"
  3. Ticket change [6816029293] (rid 235434) by sebres on 2024-11-25 12:12:24:

    1. closedate changed to: "2460640.00862135"
    2. closer changed to: "sebres"
    3. icomment:
      Fixed in [cea877fd7fecc625]. Thx for finding.
      
      As for removed correction of julian day in case of 24:00 - it was not quite correct to retain the previous day, since it'd be used in further calculations, especially if we're in other TZ as GMT/UTC, especially if we'd have a DST time switch or TZ-offset change in the TZ exactly at this time, and since 24:00 is basically next day, everything shall move to the next day (resulting unix-time is in UTC)...
      
      I think the adjustment of day of week like [cea877fd7fecc625] is only right way. Other tokens may follow (if we'd need to validate week of the year or julian day for some reason tomorrow).
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"