Hi Clinton,
I know you are not the original poster here. And I think you're confusing
the issue.
Bill is suggesting that the OP use GMT in his/her app to get around the time
zone issue. No one is forcing *you* to write anything using GMT, and no one
is forcing your to write compensation code. When you get the current
date/time using .NET code, it comes back as the current date/time on the
server *not* GMT. You do not need to apply an offset.
There are no "crackheads" at Microsoft, and frankly if you want to make
inaccurate and meaningless rants, I suggest you do it someplace else instead
of wasting everyone's time here.
Cheers
Ken
"clintonG" <cs*********@REMOVETHISTEXTmetromilwaukee.com> wrote in message
news:Of**************@TK2MSFTNGP15.phx.gbl...
: This really aggravates the hell out of me. My server is (-06:00 GMT) and
the
: 2.0 Website Administration Tool for example and other 2.0 controls write
: database entries offset 6 hours into the future. So William, when you mean
: "adjust" you must mean the database administrator or the web developer
must
: "adjust" to the fact that they are now compelled to write compensation
code
: that somehow captures the date and time of the user and applies an offset
to
: accurately record date and time circumstantially.
:
: The flaw in this reasoning, and correct me if I'm wrong, is the fact that
: the framework does not record which time zone a user is in when it
: automatically records the date and time using "adjusted" GMT values which
: requires the use of an offset. So how is the database administrator or the
: developer supposed to know what offset value to use when they need to work
: with the date and time values at some point in the future?
:
: As far as I've been able to determine the answer is "they don't." This
: decision by some Microsoft crackhead to force everybody to record data
using
: GMT was not thought out well and as usual implemented as crippleware.
:
: If we are going to be forced to adopt GMT at least the offset value should
: be recorded into the database when the framework uses brute force to
record
: the GMT value.
:
: <%= Clinton Gallagher
: METROmilwaukee (sm) "A Regional Information Service"
: NET csgallagher AT metromilwaukee.com
: URL
http://metromilwaukee.com/
: URL
http://clintongallagher.metromilwaukee.com/
:
:
:
: "William (Bill) Vaughn" <bi**************@nwlink.com> wrote in message
: news:%2****************@TK2MSFTNGP10.phx.gbl...
: > We don't use local time for situations like this. We use GMT. This way
: > it's always the same world-wide. Once captured we can query the local
: > system for its current timezone and adjust--but only if the user has to
: > see this value and it must be shown in the local timezone.
: >
: > --
: > ____________________________________
: > William (Bill) Vaughn
: > Author, Mentor, Consultant
: > Microsoft MVP
: > INETA Speaker
: >
www.betav.com/blog/billva
: >
www.betav.com
: > Please reply only to the newsgroup so that others can benefit.
: > This posting is provided "AS IS" with no warranties, and confers no
: > rights.
: > __________________________________
: >
: > "Nathan Sokalski" <nj********@hotmail.com> wrote in message
: > news:%2****************@TK2MSFTNGP14.phx.gbl...
: >>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.
: >> --
: >> Nathan Sokalski
: >>
nj********@hotmail.com
: >>
http://www.nathansokalski.com/
: >>
: >
: >
:
: