Time zone setting is not retained by the device after a reset


I update the system date time and the timezone using the standard windows api:

  • SetTimeZoneInformation(), set to Indian Standard time UTC +530
  • SetSystemTime

I see the time and the timezone update correctly.

When the device is reset, the timezone reverts to UTC -8 Pacific time

What am I missing?

Time zone information is kept in registry. To optimize a performance WinCE loads a registry in the RAM while booting.
You will lose any changes which you do in this registry after a power cycle. So make sure that you save this registry to the flash if you need the content after a coldboot.