I have had good success in using UTC (Universal Timing
Convention/"Zulu"/Greenwich/etc) dates/times. It is even easier (for
you) if you just post them that way on your site... As far as asp.net
goes, the DateTime functions already have UTC built
in...(DateTime. UtcNow instead of DateTime.Now, etc...). Also, in the
case of MS SQL 2005 (and maybe MS SQL 2000?), there are built in
functions also...GETUTCDA TE() instead of GETDATE()...etc . This is just
an idea...
Marlon wrote:[color=blue]
> What is the best way to deal time zone difference in Wep application.
>
> Is there a best pattern and practice for this?[/color]
Thanks Joey,
I am aware of these options.
Are there any built-in communications between browser and server that would
indicate the current time zone for the client computer .
I know that the getTimeZoneOffs et method can be used to determine the
difference local time and GMT.
I was just hope that a method was already implemented or a best pratice.
thanks again
"Joey" <joey.powell@to pscene.com> wrote in message
news:1137076633 .229611.191630@ o13g2000cwo.goo glegroups.com.. .[color=blue]
>I have had good success in using UTC (Universal Timing
> Convention/"Zulu"/Greenwich/etc) dates/times. It is even easier (for
> you) if you just post them that way on your site... As far as asp.net
> goes, the DateTime functions already have UTC built
> in...(DateTime. UtcNow instead of DateTime.Now, etc...). Also, in the
> case of MS SQL 2005 (and maybe MS SQL 2000?), there are built in
> functions also...GETUTCDA TE() instead of GETDATE()...etc . This is just
> an idea...
>
>
> Marlon wrote:[color=green]
>> What is the best way to deal time zone difference in Wep application.
>>
>> Is there a best pattern and practice for this?[/color]
>[/color]
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="javas cript">
function Disp_TZ()
{
var dt = new Date();
Comment