Overview
| Artifact ID: | 53ed7977bcc5cdba98b7dc48a579aaf21d5d54d0e4e46cd8042956b630f6f7a7 |
|---|---|
| Ticket: | f2b5f89c0d8520ea86b929daa19ec13fc3a24d2d
clock scan of leapsecond: wrong result in 8.6 and 9.0 |
| User & Date: | sebres on 2024-11-20 20:24:54 |
Changes
- icomment:
Maybe it is not clear, so for the record, just to emphasize the complexity of the problem - the time "23:59:60", as well as the dates "31 Jan" and "30 Jun" are only timestamps in UTC, in other time zones they are completely different, for instance the leap second <b>"Sat Jun 30 23:59:60 GMT 2012"</b> corresponds <b>"Sun <b style="color:red">Jul 01 01:59:60</b> CEST 2012"</b> and <b>"Sat Jun 30 <b style="color:red">19:59:60</b> EDT 2012"</b>, but also <b>"Sun Jul 01 <b style="color:red">09:29:60</b> ACST 2012"</b> and especially nice <b>"Sun Jul 01 <b style="color:red">08:44:60</b> +0845 2012"</b> (:Australia/Eucla). All this timestamps represents the same unix time and the same leap second. This also explain why the usage of "24:00:00" or "23:60:00" is not practicable (and I never saw that before), because it makes sense only for +0000/GMT/UTC time zone, for any other zone (depending on its offset) it may be completely "valid" time, that doesn't reflect the leap. After all the approach to validate it in the way like in branch bug-f2b5f89c0d is hardly possible, because all the scan tokens are always local time, and the check would be (pseudo) correct only for GMT/UTC and wrong for any other TZs. I'm trying to implement this properly (see my new branch bug-f2b5f89c0d-alt-leapsec) by consulting the leap seconds table with converted UTC time.
- login: "sebres"
- mimetype: "text/x-fossil-wiki"