Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d86a6ffe0092441e9bc415589abe96e68cddaf00
Ticket: 1353840fffffffffffffffffffffffffffffffff
windows stat has daylight savings problems
User & Date: matt-newman on 2005-11-11 11:05:40
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. 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
    
  4. foundin changed to: "None"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "matt-newman"
  9. subsystem changed to: "None"
  10. title changed to: "windows stat has daylight savings problems"
  11. type changed to: "Bug"