SetTimeZoneInformation and file time stamps

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi there,

I have a really surprising issue on my CE4.2 device.
Here's what's happening:

On startup of the machine, there is a check to compare the modified
time stamp of a file myOwn.dll in \Windows\ and in \CompactFlash
\Windows\
If they are different, we copy the file from the CompactFlash to the
object store \Windows
Then we carry on with the init sequence of the system, including
setting the time zone to the user preferences.
Then, once the setup is finished, because we updated this dll, we
prompt the user for a warm reset.

Then on this second startup, the timestamps of the two files are
checked again, and they ARE DIFFERENT!!!
(actually, they are not completely different, they are just TimeZone-
different.) So we copy again, etc...

What I see, is that the timestamp of the file located on the object
store doesn't get changed after the call to SetTimeZoneInformation,
but the one on the CompactFlash DOES get changed.
That's this lack of consistency that puzzles me, and generates hassles
in my system startup.


The two files have been copied in the same timezone, they have the
same timestamp then at this time.
After the TZI has been set on the system, they don't have the same
timestamp anymore. Weird, hey?


If anyone has an idea about where to start poking to resolve that, I'd
be more than happy, I'm a bit lost in the Twilight Zone.
Is there a reg setting somewhere that rules how the storage devices
deal with time???

Best regards
Alex.

.



Relevant Pages

  • Re: SetTimeZoneInformation and file time stamps
    ... that if you copy the file and then check the file while the time zone ... set in the registry, it seems like you're pretty much automatically going to ... On startup of the machine, there is a check to compare the modified ... is that the timestamp of the file located on the object ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Is Daylight Savings enabled ?
    ... Linux isn't interested in any time zone, ... startup and time will be as if it would be local to them. ... #bofh excuse 166: /pub/lunch ...
    (comp.os.linux.misc)