Is there any equivalent of TimeZoneInfo.SupportsDaylightSavingTime incompact framework




I am using Win CE 4.2 with .NET CF 3.5.

I need to know if my current time zone support Daylight Saving
time. .NET 3.5 full framework has
TimezoneInfo.SupportsDaylightSavingTime which is not available in
Compact Framework.

I have a form in my application where user sets date & time. I am
pinvoking to SetLocalTime.
When ever AutoDST (Automatically adjust clock for daylight saving)
check box is not checked under control panel Date/Time,
Sytem.DateTime.Now is off by 1 hours while staying DST start/stop date
which is expected behavior.

I can set AutoDST check using setting registry key but every Timezone
does not observes DST so I can't use this solution generically.

If I know that the current time zone is observing DST and new date is
in range of DST Start/Stop date, I can add 1 hour.
Any help would be appreciated.

Jayesh Modha


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