Check if date falls in daylight time when daylight is disabled on device?

Last post 02-26-2009 13:48 by Pat. 0 replies.
Page 1 of 1 (1 items)
Sort Posts: Previous Next
  • 02-26-2009 13:48

    • Pat
    • Top 500 Contributor
    • Joined on 02-26-2009
    • Posts 3

    Check if date falls in daylight time when daylight is disabled on device?

    WinCE5 CF2 sdf 2.3.0.21 VS2008 visual basic

     I've discovered that if I turn off automatic daylight saving time adjustment on the control panel that checks with Timezone.IsDaylightSavingTime and DateTime.IsDaylightSavingTime will return false regardless of whether or not the date does fall withing the daylight period.

     Is there a way to check that ignores the system setting and just checked the date range?

     

    I'm building a trend log app that will store all dates as UTC but when I display a date for a trend point I want to show the local time (with daylight offset if the user chooses to use daylight time).

    This is a kiosk style device so users cannot use the control panel to turn on and off daylight time adjustments so I'm turning them off and adjusting manually if the user chooses use daylight time from the app itself. Of course, if I could figure out how to toggle auto-daylight adjusments programmatically this would be a lot easier...

     

Page 1 of 1 (1 items)