Artifacts Associated With Ticket 2a1d947d8c
Ticket change [355136d660] (rid 248275) by sebres on 2025-11-14 18:42:42:
- assignee initialized to: "nobody"
- closer initialized to: "nobody"
- cmimetype initialized to: "text/x-fossil-wiki"
- 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> - foundin initialized to: "8.7+"
- is_private initialized to: "0"
- login: "sebres"
- priority initialized to: "5 Medium"
- private_contact initialized to: "50e9528765c18296566374b3fde2df942c394efd"
- resolution initialized to: "None"
- severity initialized to: "Minor"
- status initialized to: "Open"
- submitter initialized to: "sebres"
- subsystem initialized to: "16. Commands A-H"
- title initialized to:
Possible clock regression considering Julian-Gregorian transition incorrect
- type initialized to: "Bug"
Ticket change [646f1e9516] (rid 248276) by sebres on 2025-11-14 18:43:25:
- assignee changed to: "sebres"
- login: "sebres"
- mimetype: "text/plain"
Ticket change [bd5b927417] (rid 248284) by sebres on 2025-11-14 18:56:23:
- 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).
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- icomment:
Ticket change [d4d86dd313] (rid 248382) by sebres on 2025-11-17 16:36:50:
- closedate changed to: "2460997.19225337"
- closer changed to: "sebres"
- 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.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Fixed"
- status changed to: "Closed"