Home All Groups Group Topic Archive Search About

Set TimeZone for an ASP.NET Web App

Author
10 Feb 2006 6:07 PM
Dotnet Gruven
Hi,

If a server is physically localled in CST and is shared, how can one create
a Web Application on that server that has its timezone for EST???

I've seen other threads in this group that talk about using UTC/GMT and also
getTimezoneOffset(), but in this case, the business rules are such that the
Web App be based upon the time zone that the physical business is located.

TIA,
geo

Author
10 Feb 2006 7:54 PM
Bruce Barker
you have to standardize somehow. there are couple options.

1) store both datetime and timezone always.
2) store datatime and offset from gmt
3) store all datetimes in starndard zone, say gmt

you business layer should convert all datetime what standard you pick. this
means entry/display datetimes require specification of the timezone or
offset form stabdard. you can default this for the website or user.

-- bruce (sqlwork.com)

Show quote
"Dotnet Gruven" <dotnetgruven@newsgroup.nospam> wrote in message
news:%239M7ozmLGHA.2904@TK2MSFTNGP10.phx.gbl...
> Hi,
>
> If a server is physically localled in CST and is shared, how can one
> create a Web Application on that server that has its timezone for EST???
>
> I've seen other threads in this group that talk about using UTC/GMT and
> also getTimezoneOffset(), but in this case, the business rules are such
> that the Web App be based upon the time zone that the physical business is
> located.
>
> TIA,
> geo
>
Author
11 Feb 2006 12:21 AM
clintonG
This issue is one of the most grievous flaws in the framework that has been
present since 1.0. Dates and times would be so easy to work with if all
system time was offset from Greenwich using an appropriate attribute value
set in a web.config file.

<%= Clinton Gallagher
         NET csgallagher AT metromilwaukee.com
         URL http://clintongallagher.metromilwaukee.com/


Show quote
"Bruce Barker" <brubar_nospamplease_@safeco.com> wrote in message
news:%23MRxGvnLGHA.3732@TK2MSFTNGP10.phx.gbl...
> you have to standardize somehow. there are couple options.
>
> 1) store both datetime and timezone always.
> 2) store datatime and offset from gmt
> 3) store all datetimes in starndard zone, say gmt
>
> you business layer should convert all datetime what standard you pick.
> this means entry/display datetimes require specification of the timezone
> or offset form stabdard. you can default this for the website or user.
>
> -- bruce (sqlwork.com)
>
> "Dotnet Gruven" <dotnetgruven@newsgroup.nospam> wrote in message
> news:%239M7ozmLGHA.2904@TK2MSFTNGP10.phx.gbl...
>> Hi,
>>
>> If a server is physically localled in CST and is shared, how can one
>> create a Web Application on that server that has its timezone for EST???
>>
>> I've seen other threads in this group that talk about using UTC/GMT and
>> also getTimezoneOffset(), but in this case, the business rules are such
>> that the Web App be based upon the time zone that the physical business
>> is located.
>>
>> TIA,
>> geo
>>
>
>

AddThis Social Bookmark Button