Daylight Saving Support with EWF

T

Tim Houle

I need to Daylight Savings support with RAM EWF. I also
need time and date stamps in my application so I cant use
RealTimeIsUniversal reg setting.

Slobodan - have you heard any response to the 2 solutions
you suggested:

1.
That we can designate path to file (out of EWF
protection) that will hold
current daylight saving state.

2.
Info on daylight saving state should be in CMOS (probably
not universally
possible).

Has anyone got a solution to this?
 
S

Slobodan Brcin \(eMVP\)

Hi Tim,

Every six months daylight saving problem, hurrah :)

RealTimeIsUniversal can't be used due to bug in user mode :( in hours around
the one of changes system goes to deadlock (99% processor usage) on HTT
processors 50%.

I raised that question again one month ago for consideration for upcoming
LHe. And it was not on MS to do list, they were unaware of the problem like
many new developers.

1 and 2 can't be done by the OS itself at least not with current
implementation.

There is one solution that require your app to detect time change and to
reboot device.

And there is my solution that I use for our shell and app. You disable
daylight saving in windows and use normal unadjusted time by the OS
(SYSTEMTIME)
On each place where you see time you must use windows function to convert
systemtime to local time based on parameters you provide for your time zone.
When you need to change time you can use localtime to system time conversion
before setting time.
And of course this solution does not have problem with daylight saving, but
you must use custom shell.

So good luck,
Slobodan
 
T

Tim Houle

Slobodan,

That's discouraging about nothing being done at MS.

Let me know if this would work:
Disable DST.
On initialization of my shell, get current SYSTEMTIME,
convert to localtime based on time zone param. Then
change time from localtime to SYSTEMTIME and set it. Run
this code each time my shell initializes.

Thanks alot,

Tim
 
S

Slobodan Brcin \(eMVP\)

Tim,

You would move time for one hour on each boot, since you would need to set
time.
Also this would not solve problem with system running for days without
shutdown.
Since you must detect daylight change when it happens this must be done from
some service or app invisible to user that is always present and working.

Sorry but so far you have only three solutions available.
1. Use custom shell and programs written with XPe in mind. (The best
solution).
2. Use network time server.
3. Use application or service that will detect daylight change when it
happens and commit and reboot your device. (Very dangerous solution since it
can commit god knows what changes from your working XPe).

There is possibility for some other solution, but you will have to think
about it for your special case.

Regards,
Slobodan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Have an opinion on the effectiveness of Microsoft Embedded newsgroups? Tell
Microsoft!
https://www.windowsembeddedeval.com/community/newsgroups
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top