NTFS stores time properly in UTC.  FAT/FAT32 stores in local time. Either way, time should be displayed in local time when file:read_file_info/1 is called.  <br><br>I did a little digging into the driver code an to appears the the FileTimeToLocalTime Win32API to convert the time.  I suspect it is this API call that is the root of the problem.  I don't have a Windows platform to test on, so I can't dig any further, but there is a discussion <a href="http://www.codeproject.com/KB/datetime/dstbugs.aspx">here</a> that might explain the problem more.<br>
<br><br><br><div class="gmail_quote">2008/10/27 Johnny Billquist <span dir="ltr"><<a href="mailto:bqt@softjar.se">bqt@softjar.se</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">John Hughes wrote:<br>
> I would have expected that, once a file has been created, then its creation<br>
> time should remain constant (unless explicitly modified)--wouldn't you? Not<br>
> so! At least, not under Windows. Under both XP and Vista, the file creation<br>
> time reported by file:read_file_info changes by an hour when daylight saving<br>
> time ends (and presumably also when it begins)!<br>
><br>
> File system design according to the Principle of Greatest Astonishment,<br>
> evidently.<br>
<br>
</div>I believe that's a basic problem with windows, since it don't actually<br>
keep time in UTC, but local time, internally.<br>
<br>
In short: if you use Windows, that's the way it is. Don't have anything<br>
to do with Erlang.<br>
<font color="#888888"><br>
        Johnny<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://www.erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://www.erlang.org/mailman/listinfo/erlang-questions</a><br>
</div></div></blockquote></div><br>