Article View: borland.public.jbuilder.java.api
Article #1027Re: Probelem with Date and daylight savings
From: Rich Wilkman
Date: Mon, 29 Apr 2002 16:41
Date: Mon, 29 Apr 2002 16:41
27 lines
1941 bytes
1941 bytes
It's not a case of deliberate misconfigure. There are a couple states and some cities that do not honor the time shift (for various reasons). -Rich "R.F. Pels" wrote: > Hanan Hermon wrote: > > >>> The problem is that I need to do it ONLY if the OS is not configured > >>> to use daylight savings (Tested on WinNT). > >> > >> Then configure it to use daylight savings. > > > > The problem is that it is user dependent, so if a user do not what it to > > be configured then my application will not work correctly. > > That is your problem, however, in your requirements you may require of the > user that he sets up his timezone correctly, including the adjust clock for > DST setting if he is in a time zone that has that feature. If a user wants > to deliberately misconfigure his machine, then any of the consequences are > his, not yours. Other than that, if you do arithmetic, make sure you're > doing all date and time arithmetic in UTC. > > -- > > Ruurd
Technical Details
Message-ID:
<3CCD77D5.86571AAB@formlessvoid.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnewsReferences:
<3cc66f49_2@dnews> <3cc6aff3_1@dnews> <3cc7e91e_2@dnews> <3cc7f39b_1@dnews> <3ccbde9d$1_2@dnews> <3ccc5a6c_1@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,78729ebe20306c09 X-Google-Attributes: gid1089d0,public X-Google-ArrivalTime: 2002-04-29 09:52:11 PST Message-ID: <3CCD77D5.86571AAB@formlessvoid.com> Date: Mon, 29 Apr 2002 09:41:58 -0700 From: Rich Wilkman <richw@formlessvoid.com> X-Mailer: Mozilla 4.78 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.api Subject: Re: Probelem with Date and daylight savings References: <3cc66f49_2@dnews> <3cc6aff3_1@dnews> <3cc7e91e_2@dnews> <3cc7f39b_1@dnews> <3ccbde9d$1_2@dnews> <3ccc5a6c_1@dnews> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 64.130.77.153 X-Trace: dnews 1020098542 64.130.77.153 (29 Apr 2002 09:42:22 -0700) Lines: 28 Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!cox.net!nntp-relay.ihug.net!newsfeeds.ihug.co.nz!ihug.co.nz!dnews