Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#949 Daylight Saving causes opened files to be considered changed

closed-wont-fix
nobody
General (289)
5
2013-03-31
2013-03-31
Simon Stienen
No

After keeping Geany with a few files open overnight during daylight saving related clock change, all opened files were considered changed on the outside.

This behaviour has been observed with Geany 1.22 on Windows 7 x64

Discussion

  • Lex Trotman
    Lex Trotman
    2013-03-31

    This appears to be an issue with the underlying filesystem time handling and may depend on the type of filesystem, see http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290\(v=vs.85).aspx.

    As noted changing time zones can change file times for FAT filesystems.

    The start/end of daylight savings is a time zone change (ie UTC delta changes).

    As Geany does not know the type of filesystem underlying any file it is not possible to avoid this behaviour.

     
  • Lex Trotman
    Lex Trotman
    2013-03-31

    • status: open --> closed-wont-fix
     
  • Simon Stienen
    Simon Stienen
    2013-04-01

    This has been observed on an (unencrypted, uncompressed) NTFS partition, though.

     
  • Lex Trotman
    Lex Trotman
    2013-04-01

    Yes, well, all we do is compare the results of the "stat" system call which is the number of seconds from the epoch, no time zones or daylight savings come into it, so it appears that Windows can't convert whatever it stores internally into that number correctly, even for NTFS file systems.

    (yes we call g_stat, but I checked and all it does is call the unix or windows stat function depending on OS)