Overview
| Artifact ID: | 30ee18d61b182d025afb368fe0ddcc1cfb9ff256 |
|---|---|
| Ticket: | 1746193fffffffffffffffffffffffffffffffff
[clock add] month miscalculation in Chicago time |
| User & Date: | andygoth on 2007-07-01 21:44:08 |
Changes
- assignee changed to: "dkf"
- cmimetype changed to: "text/plain"
- comment changed to:
In the Chicago (Central) time zone, [clock add] can miscalculate month addition and subtraction: [clock format [clock add [clock scan "May 01 00:00:00 1970" -timezone :UTC] 1 month] -timezone :UTC] returns "Sun May 31 00:00:00 UTC 1970" [clock format [clock add [clock scan "May 31 00:00:00 1970" -timezone :UTC] -1 month] -timezone :UTC] returns "Fri May 01 00:00:00 UTC 1970" Changing the time zone to UTC or CEST fixes the problem: [clock format [clock add [clock scan "May 01 00:00:00 1970" -timezone :UTC] 1 month] -timezone :UTC] returns "Mon Jun 01 00:00:00 UTC 1970" Probably other time zones work as well. It's also possible other time zones are broken. It could be that the Chicago time zone is only broken when in Daylight Saving time. This occurs in both Slackware Linux and MS-Windows XP.
- foundin changed to: "obsolete: 8.5a7"
- is_private changed to: "0"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "andygoth"
- subsystem changed to: "16. Commands A-H"
- title changed to: "[clock add] month miscalculation in Chicago time"
- type changed to: "Bug"