Overview
| Artifact ID: | de9483c31a5e8b12c35dc7320770e8920dd4d497 |
|---|---|
| Ticket: | 1746193fffffffffffffffffffffffffffffffff
[clock add] month miscalculation in Chicago time |
| User & Date: | kennykb on 2007-09-04 03:56:11 |
Changes
- closedate changed to: "2007-09-03T20:56:11"
- closer changed to: "kennykb"
- icomment:
Logged In: YES user_id=99768 Originator: NO I can't find a bug here. [clock add] operates in the given timezone - in your case :America/Chicago. In Chicago time, 12960000 is Sat May 30 19:00:00 CDT 1970 Subtracting 1 month yields % clock add 12960000 -1 month -timezone :America/Chicago 10368000 % clock format 10368000 -timezone :America/Chicago Thu Apr 30 19:00:00 CDT 1970 which is 1 month before the given date in Chicago time. By contrast, in UTC, we have: % clock format 12960000 -gmt 1 Sun May 31 00:00:00 GMT 1970 Subtracting 1 month yields the invalid date April 31, which gets trimmed to April 30: % clock add 12960000 -1 month -gmt 1 10281600 % clock format 10281600 -gmt 1 Thu Apr 30 00:00:00 GMT 1970 All of which is exactly as I expect.
- login: "kennykb"
- mimetype: "text/plain"
- resolution changed to: "Invalid"
- status changed to: "Pending"
- username: "kennykb"