Re: Display times in client's time zone?
Mark Kucera <[email protected]>
| Newsgroups | gmane.comp.windows.devel.dotnet.web |
|---|---|
| Message-ID | <[email protected]> |
JavaScript is able to get the current time on the users system. You could then pass this into a server side method either by way of AJAX, or a hidden form field which you submit back to the server. You can then just compare that against the server time to figure the offset... HTH -MK -----Original Message----- From: Discussion of building .NET applications targeted for the Web [mailto:[email protected]] On Behalf Of Pardee, Roy Sent: Friday, June 22, 2007 02:59 PM To: [email protected] Subject: [DOTNET-WEB] Display times in client's time zone? If I have a calendar/scheduler type application & I want to show users in different time zones the time of a particular event in *their* time zone, what's the easiest way to get that done? Looks like client time zone doesn't come over in the useragent string (right?). Do I have to ask users what time zone they're in? Thanks! -Roy Roy Pardee Research Analyst/Programmer Group Health Center For Health Studies (Cancer Research Network) (206) 287-2078 Google Talk: rpardee =================================== This list is hosted by DevelopMentor(r) http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentor® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com