Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 354396690d3152854f45368207c931b3c77c6f75
Ticket: 1353840fffffffffffffffffffffffffffffffff
windows stat has daylight savings problems
User & Date: matt-newman on 2005-11-15 17:50:43
Changes

  1. icomment:
    Logged In: YES 
    user_id=1333796
    
    Let me try and be clear:
    1. set clock to july this year
    create a file on ntfs *and* fat (same system)
    old & new stat returns *7072. good so far.
    
    2. advance clock to today
    old stat returns *3470 for ntfs and fat (wrong)
    new stat returns *7072 for ntfs and fat (correct)
    
    3. reboot
    old stat returns *3470 for ntfs (wrong)
    new stat returns *7072 for ntfs (correct)
    old stat returns *7072 for fat (correct)
    new stat returns *0672 for fat (wrong)
    
    so you can see that the old code is *always* wrong for ntfs once you 
    moving into a different DST slice.
    Also the old code is also always wrong for fat too until a reboot takes 
    place.....
    
    The new code is only wrong for fat - post reboot - but this is because of 
    a bug in MS's FIlETIME conversions in the kernel, and a side-effect of 
    storing local time... Since there is no practical way to second-guess if 
    the fat time is pre or post reboot there is no reasonable solution that I 
    am aware of.
    
    Also I would argue strongly, that such precision is very important in the 
    corporate/business market, where NTFS is the rule and FAT the 
    exception, whereas in the consumer market such things are less 
    important, and are already broken for FAT anyway... (see above pre/
    post reboot example)
    
    Matt
    
    
  2. login: "matt-newman"
  3. mimetype: "text/plain"
  4. username: "matt-newman"