473,320 Members | 2,048 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Set TimeZone for an ASP.NET Web App

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
Feb 10 '06 #1
2 4021
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" <do**********@newsgroup.nospam> wrote in message
news:%2****************@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

Feb 10 '06 #2
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/
"Bruce Barker" <br******************@safeco.com> wrote in message
news:%2****************@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" <do**********@newsgroup.nospam> wrote in message
news:%2****************@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


Feb 11 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jason Kinkade | last post by:
I recently installed MySQL 4.0.18 on my slackware 9.1 machine (kernel 2.4.25) by compiling the source. It works fine, and all tests pass except one. The timezone test. Can someone tell me why...
7
by: Jim Davis | last post by:
I'm (still) working on an ISO 8601 date parser. I want to convert at least the formats described here: http://www.w3.org/TR/NOTE-datetime Well.. I've got most of it working (via RegEx's) good...
1
by: cnliou | last post by:
Hi! If I correctly understand v7.4 manual, value, say, '2003-11-26 12:00' in TIMESTAMP WITHOUT TIMEZONE column should output '2003-11-26 19:00' for "+08:00" timezone. The following test...
1
by: Raj Chudasama | last post by:
I have the following code for a clock in my gui. Everything works fine EXCEPT the following line when the TimeZone is changed in the windows. string tz = TimeZone.CurrentTimeZone.StandardName;...
6
by: Bijoy Naick | last post by:
I have an events table which stores the time of each event - the time and assoicated timezone. Is there a way of converting this time into GMT (with support for DST).. some sort of function which...
2
by: David Garamond | last post by:
When a timestamp string input contains a timezone abbreviation (CDT, PST, etc), which timezone offset is used? The input date's or today date's? The result on my computer suggests the latter. #...
13
by: Bruno Wolff III | last post by:
Recently there has been some discussion about attaching a timezone to a timestamp and some other discussion about including a 'day' part in the interval type. These two features impact each other,...
3
by: asanford | last post by:
I want to create a web service that allows the caller to pass a DateTime to the web service (that is, create a web method such as void MyWebMethod(DateTime dt).) However, I want to be able to...
2
by: Sanjay | last post by:
Hi All, Using pytz, I am facing a problem with Asia/Calcutta, described below. Asia/Calcutta is actually IST, which is GMT + 5:30. But while using pytz, it was recognized as HMT (GMT + 5:53)....
2
by: =?Utf-8?B?Sm9ubnk=?= | last post by:
I have an ASP.NET 2.0 C# web application that is contacting an Exchange server using WEBDAV. It allows the users to look up appointments for a future date. The problem I have is determining the...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.