🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #1012

Re: Probelem with Date and daylight savings

#1012
From: R.F. Pels
Date: Sun, 28 Apr 2002 20:24
21 lines
1713 bytes
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: <3ccc5a6c_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!psinet-eu-nl!unlisys!news.snafu.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3cc66f49_2@dnews> <3cc6aff3_1@dnews> <3cc7e91e_2@dnews> <3cc7f39b_1@dnews> <3ccbde9d$1_2@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-28 13:39:11 PST
Message-ID: <3ccc5a6c_1@dnews>
From: "R.F. Pels" <ruurd@acklin.nl>
Subject: Re: Probelem with Date and daylight savings
Newsgroups: borland.public.jbuilder.java.api
Date: Sun, 28 Apr 2002 22:24:10 +0200
References: <3cc66f49_2@dnews> <3cc6aff3_1@dnews> <3cc7e91e_2@dnews> <3cc7f39b_1@dnews> <3ccbde9d$1_2@dnews>
Lines: 21
Organization: Acklin B.V.
User-Agent: KNode/0.7.1
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7Bit
NNTP-Posting-Host: 213.51.58.136
X-Trace: dnews 1020025452 213.51.58.136 (28 Apr 2002 13:24:12 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!supernews.com!news-x2.support.nl!psinet-eu-nl!unlisys!news.snafu.de!newsfeed01.sul.t-online.de!t-online.de!dnews