Last post Jun 25, 2008 09:51 AM by mbentley
Jun 24, 2008 01:20 PM|mbentley|LINK
I have a web page that displays data in GMT. I am using two CalendarExtenders to limit the date range of the data. The catch is that in the CalendarExtenders, when the user clicks "Today" it gives the local date. Since we are 6 hours out from GMT, that
means that after 6pm (local), "Today" GMT is actually tomorrow in local time. Since I am not sure where the user is, I can't just add the offset for them either.
Jun 25, 2008 05:18 AM|Erik Freund|LINK
This blog post seems to be hitting upon the same idea (in reverse) from what you're doing.
http://www.tellingmachine.com/post/2008/05/Rendering-ASPNET-UTC-time-as-local-time-of-the-browsers-time-zone.aspx It should be easy to flip the code around.
Hope that helps,
Jun 25, 2008 09:51 AM|mbentley|LINK
Thanks, but unfortunately that blog does not use a CalendarExtender at all.
I am trying to find a way to get the CalendarExtender to understand that "Today" is based in GMT, not the client local time.