Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 355136d660281fa91a30769bc843ed76b61f6e55ca5f2509559b50115f0dc6fa
Ticket: 2a1d947d8c13506dc68d93a0d06784d4be1a1b58
Possible clock regression considering Julian-Gregorian transition incorrect
User & Date: sebres on 2025-11-14 18:42:42
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/x-fossil-wiki"
  4. comment changed 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 changed to: "8.7+"
  6. is_private changed to: "0"
  7. login: "sebres"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "50e9528765c18296566374b3fde2df942c394efd"
  10. resolution changed to: "None"
  11. severity changed to: "Minor"
  12. status changed to: "Open"
  13. submitter changed to: "sebres"
  14. subsystem changed to: "16. Commands A-H"
  15. title changed to:
    Possible clock regression considering Julian-Gregorian transition incorrect
    
  16. type changed to: "Bug"