Original bug ID: 7385 Reporter:@nojb Assigned to:@dra27 Status: resolved (set by @damiendoligez on 2017-06-09T09:11:52Z) Resolution: fixed Priority: normal Severity: minor Platform: Windows Target version: 4.05.0 +dev/beta1/beta2/beta3/rc1 Category: otherlibs Has duplicate:#7569 Related to:#7489 Monitored by:@gasche@jmeber@alainfrisch
Unix.stat on Windows returns different time stamps (notably the st_mtime field) depending on the DST setting of the machine on which it is executed.
For reference, Unix.stat on Un*x returns an absolute timestamp which is completely independent of any time zone/DST setting.
This bug appears to have existed for some time (it is at least present in 4.02.0), but of course is hard to spot since the bug causes only a 1hr difference in the resulting timestamp and is only present half the year.
We are currently investigating the source of the bug.
Steps to reproduce
$ ocaml unix.cma
Now, change the DST setting on Windows, repeat the above and see how the timestamps have changed by 1hr.
The text was updated successfully, but these errors were encountered:
This bug is always present in OCaml 4.03.0 and later. In earlier versions (including your 4.02.0 report) it's present when using Visual Studio 2012 or earlier (it's fixed in msvcr120.dll - Visual Studio 2013).