Re: SetTimeZoneInformation and file time stamps

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



The filesystem characteristics are set in the source code that implements
it.

If it were me, I'd make sure that my time zone information was right. Do a
GetTimeZoneInformation() and check the return value. Read the structure
that's filled in by the call and make sure that it's right, particularly
with respect to DST transition dates, offsets from GMT, etc. Then do the
same for the other location you're worrying about. That's the only stuff
that you have a chance of affecting, if it's wrong, so that's what you want
to make really sure.

Paul T.

<portnawake@xxxxxxxxx> wrote in message
news:1175201765.181671.318590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Sorry, that was confusing.
I tried it on a different platform, different hardware, different
design, running mostly the same soft. No problem on that platform. I
guess the Ram filesystem is of a different nature (But where are its
properties defined?).

On the platform with the odd behavior, I have a one hour difference at
the moment because that's what I use in my test program to highlight
this issue (and to try and prove my point with MSFT tech support.).
But I've seen 12 hrs differences with the system defaulting to NZ
time, and the TZI later set to Europe.

Anyway, I don't really see how to dig any further for that issue, and
it's not something I can't work around.
But it's still stinging my curiosity, and that's annoying!

Cheers,
Alex





On Mar 30, 4:40 am, "Paul G. Tobey [eMVP]" <p space tobey no spam AT
no instrument no spam DOT com> wrote:
So, you have another copy of your platform and that works, or you've
tried
it on another platform and it works? If the time comparison is off by a
round number like one hour, check that the DST flag is set right. I
wouldn't expect that to matter, but, if the filesystem is storing local
time, not GMT, the state of the DST flag might cause a one hour error,
depending on what time zones are involved. You could also try a time
zone
where there is no DST change, like Arizona.

Paul T.




.



Relevant Pages

  • RE: Daylight Saving Time (AutoDST, HomeDST, SetDaylightTime)
    ... After SetDaylightTime(), you may have changed the time, effectively. ... The DST flag is a flag set by the system in response to SetDaylightTime ... correct date/time based on the selected time zone. ... on your device (and set the Automatically Adjust for Daylight Time option). ...
    (microsoft.public.windowsce.app.development)
  • RE: Daylight Saving Time (AutoDST, HomeDST, SetDaylightTime)
    ... If you reboot, the DST flag is stored in the registry (which of course, we ... the Control Panel Date/Time applet and verify that you set the time zone ... the DST flag has been set by the Control Panel ... on your device (and set the Automatically Adjust for Daylight Time option). ...
    (microsoft.public.windowsce.app.development)
  • RE: Daylight Saving Time (AutoDST, HomeDST, SetDaylightTime)
    ... After SetDaylightTime(), you may have changed the time, effectively. ... The DST flag is a flag set by the system in response to SetDaylightTime ... correct date/time based on the selected time zone. ... on your device (and set the Automatically Adjust for Daylight Time option). ...
    (microsoft.public.windowsce.app.development)
  • Re: SetTimeZoneInformation and file time stamps
    ... So, you have another copy of your platform and that works, or you've tried ... If the time comparison is off by a ... Copies from FAT to FAT behave indeed in a consistent way. ... filesystem - without the source-... ...
    (microsoft.public.windowsce.platbuilder)
  • Whats the weirdest filesystem out there?
    ... I'm working on code which needs to break the pathname in a Java File ... An optional filesystem identifier. ... An optional root directory. ... Is there any platform out there that uses something than its directory ...
    (comp.programming)