Re: Problem with file-dates between machines in different time-zones and daylight-saving times



Günter Prossliner <g.prossliner/gmx/at> schreef in berichtnieuws
#cSfKb0NIHA.3852@xxxxxxxxxxxxxxxxxxxxxxx
Hello,

Hello Günter,

My question : is there a way to retrieve the actual UTC time as is
stored in the directory-entry ?

It depents on the File-System. FAT doesn't use UTC, but NTFS does.

I'm using FAT 32. And what do you mean "does not use UTC" ? Isn't that
what is actually stored into the directory-entry for the file (and converted
from-and-to the users local time)?

check out this:

[File Times (Windows)]
http://msdn2.microsoft.com/en-us/library/ms724290.aspx

Will do, thanks

Allso, is there a way to tell the
CopyFile command to use UTC instead of local time.

I don't understand what you meen by this. CopyFile has no dependency on
File-Times.

There are three file-times stored in a Win32 FAT directory-entry. When I
copy a file from my local computer to the remote one the "last written" time
matches the local file, the "created at" time does not (I've, due to the
problems with the previous times, not put much attention to the "last
accessed" time).

<snip>

Do you use the right conversation-functions? FileTimeToLocalFileTime does
NOT include daylight saving time settings!

At leased the docs are confusing:

As far as I can see it does (I've changed this setting and the time-zone
setting so many times now (to check the effects of the different settings &
used methods) that my head spins).

<snip>

But the Docs now specify that it does.... I would try them both.

I'll currently ready to try *anything*, so thanks for the pointers.

Regards,
Rudy Wieser



.



Relevant Pages

  • Re: [PATCH] UTC timestamp option for FAT filesystems
    ... It means the timestamp of FAT on the camera is just wrong. ... writing UTC means you modified the design of FAT. ... I do not consider this modifying the design of FAT. ... it's straight local time. ...
    (Linux-Kernel)
  • Re: [PATCH] UTC timestamp option for FAT filesystems
    ... an option existed in Linux to always use this fixed offset on mount, ... Linux timestamp could be correct in this case as well. ... It means the timestamp of FAT on the camera is just wrong. ... It is more confusing than using UTC (the user, in essence, is ...
    (Linux-Kernel)
  • Daylight saving time & FAT
    ... FAT and its Linux driver. ... the same file will have a different _UTC_ timestamp depending on my ... current timezone, since the current offset from UTC is added to the ... stored timestamp to get the UTC time (I verified the timezone change ...
    (Linux-Kernel)
  • Re: [PATCH] UTC timestamp option for FAT filesystems
    ... volume: local time or UTC. ... Windows well, and the latter would be extremely useful for other devices ... hack for changing FAT for Linux. ...
    (Linux-Kernel)

Loading