Specifying the default timezone

  • Thread starter Thread starter Nathan Sokalski
  • Start date Start date
N

Nathan Sokalski

I have an application in which I want to use a certain timezone. I do not
want to need to specify the timezone every time I use a date-related method
or function, so is there some way I can specify a default timezone in either
the Web.config or somewhere else? Thanks.
 
I have an application in which I want to use a certain timezone. I do not
want to need to specify the timezone every time I use a date-related method
or function, so is there some way I can specify a default timezone in either
the Web.config or somewhere else? Thanks.

Nathan, I think you can't do it on the global level.
 
I have an application in which I want to use a certain timezone. I do
not want to need to specify the timezone every time I use a
date-related method or function, so is there some way I can specify a
default timezone in either the Web.config or somewhere else? Thanks.


You set it in Windows, by setting the timezone there. Then everything works
on that timezone.

A better way to handle this is to set all of your time fields to UTC. Then,
if the location of the server changes, you do not have to recalculate
times. You would still set the timezone on the server for display, however.


--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

Twitter: @gbworld
Blog: http://gregorybeamer.spaces.live.com

*******************************************
| Think outside the box! |
*******************************************
 
Back
Top