Overview
| Artifact ID: | d86a6ffe0092441e9bc415589abe96e68cddaf00 |
|---|---|
| Ticket: | 1353840fffffffffffffffffffffffffffffffff
windows stat has daylight savings problems |
| User & Date: | matt-newman on 2005-11-11 11:05:40 |
Changes
- assignee changed to: "nobody"
- cmimetype changed to: "text/plain"
- comment changed to:
Set your date to something this summer and create a file with that timestamp then to a tcl stat and print out the mtime field. Then go to control panel and UNCHECK the adjust for daylight saving and re- stat the file - the mtime reported will be different. The bug is very old - it is due to a misunderstand of the problems encountered between borland and ms C runtimes - the comments indicate that borland incorrectly returned UTC, which caused a specific work around to be added using GetFileAttributes. The work around is fine EXCEPT the function ToCTime() is broken. Attached is a fix that uses direct math to convert the FIELTIME to time_t and is therefore immune to these issues. I would rate this bug as critical for those of us that build applications that rely on timestamps.... Matt
- foundin changed to: "None"
- priority changed to: "5 Medium"
- resolution changed to: "None"
- status changed to: "Open"
- submitter changed to: "matt-newman"
- subsystem changed to: "None"
- title changed to: "windows stat has daylight savings problems"
- type changed to: "Bug"