N
Nathan Sokalski
I use a webhosting service that is something like halfway around the world
from me and most of the people that will be viewing my site (and I am
assuming their server is too). This obviously has very little effect on what
I can do, but there is one thing that I would like to know how to do (if it
can be done). When I do something that involves getting the current date or
time, my application gets it from the server it is running on, which means
it could be off by as much about half a day, and many of my pages preselect
the current date for certain things, but sometimes that is incorrect for the
same reason. Is there any way to make my entire application automatically
adjust these values to the timezone I am in (is there a way I can put a
setting in the web.config or Global.asax.vb file or something that says
"where I am" so it adjusts these values based on where the server says it
is)? This would make things much less complicated for me, as well as make it
easier if I ever have to move my application to a different webhost or
server. Thanks.
from me and most of the people that will be viewing my site (and I am
assuming their server is too). This obviously has very little effect on what
I can do, but there is one thing that I would like to know how to do (if it
can be done). When I do something that involves getting the current date or
time, my application gets it from the server it is running on, which means
it could be off by as much about half a day, and many of my pages preselect
the current date for certain things, but sometimes that is incorrect for the
same reason. Is there any way to make my entire application automatically
adjust these values to the timezone I am in (is there a way I can put a
setting in the web.config or Global.asax.vb file or something that says
"where I am" so it adjusts these values based on where the server says it
is)? This would make things much less complicated for me, as well as make it
easier if I ever have to move my application to a different webhost or
server. Thanks.