Thanks for Joey's suggestion.
Hi Marlon,
For ASP.NET application it running on the serverside so it has limited
access to most of the clientside info. And so far for getting clientside
timezone info, you can consider Joey's suggest that use javascript to get
the TimezoneOffset .... e.g:
<script language="javascript">
function Disp_TZ()
{
var dt = new Date();
var offsetMin =dt.getTimezoneOffset()/60;
alert("Your local timezone offset: " + offsetMin + " ");
}
</script>
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "Joey" <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet
| Subject: Re: time zone in wep application.
| Date: 12 Jan 2006 08:20:41 -0800
| Organization:
http://groups.google.com
| Lines: 3
| Message-ID: <
[email protected]>
| References: <
[email protected]>
| <
[email protected]>
| <#
[email protected]>
| NNTP-Posting-Host: 155.147.14.9
| Mime-Version: 1.0
| Content-Type: text/plain; charset="iso-8859-1"
| X-Trace: posting.google.com 1137082845 22686 127.0.0.1 (12 Jan 2006
16:20:45 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: Thu, 12 Jan 2006 16:20:45 +0000 (UTC)
| In-Reply-To: <#
[email protected]>
| User-Agent: G2/0.2
| X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
..NET CLR 1.1.4322; .NET CLR 2.0.50727; InfoPath.1; .NET CLR
1.0.3705),gzip(gfe),gzip(gfe)
| Complaints-To: (e-mail address removed)
| Injection-Info: g47g2000cwa.googlegroups.com; posting-host=155.147.14.9;
| posting-account=quLkng0AAADPxeWcCK254A0yusgzOfm6
| Path:
TK2MSFTNGXA02.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.gigan
ews.com!postnews.google.com!g47g2000cwa.googlegroups.com!not-for-mail
| Xref: TK2MSFTNGXA02.phx.gbl
microsoft.public.dotnet.framework.aspnet:370367
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
|
| Couldn't you use getTimeZoneOffset to apply to UTC and get their local
| times?
|
|