Skip to content
Tcl Source Code History Of Ticket 2a1d947d8c
Login

History Of Ticket 2a1d947d8c

Artifacts Associated With Ticket 2a1d947d8c

  1. Ticket change [355136d660] (rid 248275) by sebres on 2025-11-14 18:42:42:

    1. assignee initialized to: "nobody"
    2. closer initialized to: "nobody"
    3. cmimetype initialized to: "text/x-fossil-wiki"
    4. comment initialized to:
      As mentioned by emiliano in chat, there seem to be 2 inconsistences regarding scanning of old timestamps (potentially affected by incorrect handling of Julian-Gregorian transition):
      
      1. Validation seems to miss changing of Gregorian flag in some circumstances:
      <code><pre style="margin-left:15pt">
      $ tclsh8.6
      % puts [set d [clock scan "29.02.1700" -format {%d.%m.%Y} -gmt 1 -locale en]]
      -8514374400
      % puts [clock format $d -format {%d.%m.%Y} -gmt 1 -locale en]
      29.02.1700
      $ tclsh9
      % puts [set d [clock scan "29.02.1700" -format {%d.%m.%Y} -gmt 1 -locale en]]
      unable to convert input string: invalid day
      % puts [set d [clock scan "29.02.1700" -format {%d.%m.%Y} -gmt 1 -locale en -valid 0]]
      -8514374400
      % puts [clock format $d -format {%d.%m.%Y} -gmt 1 -locale en]
      29.02.1700
      </pre></code>
      
      2. There is a 8.6 -> 9 difference on free form scanning around year 1752:
      <code><pre style="margin-left:15pt">
      $ tclsh8.6 
      % clock format [clock scan "9/1/1752 1 day ago"] -format %d
      11
      $ tclsh9
      % clock format [clock scan "9/1/1752 1 day ago"] -format %d
      31
      </pre></code>
      
    5. foundin initialized to: "8.7+"
    6. is_private initialized to: "0"
    7. login: "sebres"
    8. priority initialized to: "5 Medium"
    9. private_contact initialized to: "50e9528765c18296566374b3fde2df942c394efd"
    10. resolution initialized to: "None"
    11. severity initialized to: "Minor"
    12. status initialized to: "Open"
    13. submitter initialized to: "sebres"
    14. subsystem initialized to: "16. Commands A-H"
    15. title initialized to:
      Possible clock regression considering Julian-Gregorian transition incorrect
      
    16. type initialized to: "Bug"
  2. Ticket change [646f1e9516] (rid 248276) by sebres on 2025-11-14 18:43:25:

    1. assignee changed to: "sebres"
    2. login: "sebres"
    3. mimetype: "text/plain"
  3. Ticket change [bd5b927417] (rid 248284) by sebres on 2025-11-14 18:56:23:

    1. icomment:
      Commit [a40aa78ddd710f15] (branch [./vdiff?from=219682a2573eb1d4&to=bug-2a1d947d8c13506d-clock-valid-julian-cal|bug-2a1d947d8c13506d-clock-valid-julian-cal]) fixes part 1 of the issue.
      
      As for part 2, I'm still unsure 8.6 handled it correctly (or rather I would like to understand what happened there, so one could analyze its validness).
      
    2. login: "sebres"
    3. mimetype: "text/x-fossil-wiki"
  4. Ticket change [d4d86dd313] (rid 248382) by sebres on 2025-11-17 16:36:50:

    1. closedate changed to: "2460997.19225337"
    2. closer changed to: "sebres"
    3. icomment:
      Part 1 is fixed in [309b28d3f5335753] for 9.x.
      
      Regarding part 2, it looks like a bug in freescan of 8.x, because formatted scan returns it like in new clock (where freescan and fmt-scan are more similar and completely equivalent by all conversions):
      <code><pre style="margin-left:15pt">
      % clock format [clock scan "9/1/1752" -gmt 1 -format %m/%d/%Y] -format %m/%d/%Y -gmt 1
      09/01/1752
      % clock format [clock scan "9/1/1752" -gmt 1                 ] -format %m/%d/%Y -gmt 1
      09/12/1752
      </pre></code>
      
      Thus closed.
      
    4. login: "sebres"
    5. mimetype: "text/x-fossil-wiki"
    6. resolution changed to: "Fixed"
    7. status changed to: "Closed"