Set TimeZone for an ASP.NET Web App

D

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
 
B

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)
 
C

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/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top