Skip to content
Tcl Source Code View Ticket
Login

View Ticket

Wrong clock scan for 28 March 1999

Closed / Fixed219005ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:09:13
OriginalBugID: 3868 Bug
Version: 8.0.3
SubmitDate: '1999-12-13'
LastModified: '2000-01-12'
Severity: MED
Status: Released
Submitter: techsupp
ChangedBy: ericm
OS: Linux-Red Hat
OSVersion: Red Hat 5.2
Machine: AMD K6-350 MHz
FixedDate: '2000-01-12'
FixedInVersion: 8.3b2
ClosedDate: '2000-10-25'


Name:
Constantin Teodorescu

Extensions:
Tcl 8.0.3

Comments:
It will be nice if clock command would have an options for computing date differences (in days).

ReproducibleScript:
Invoke tclsh and make some calculations:

% set t1 [clock scan "03/26/1999 + 1 day"]
922485600
% set t2 [clock scan "03/27/1999"]
922485600 

t1 and t2 should be (and they are equal for the above test)
Now try with a day later:

% set t1 [clock scan "03/27/1999 + 1 day"]
922572000
% set t2 [clock scan "03/28/1999"]
922568400 

t1 and t2 are not longer equal! Why ?

DesiredBehavior:
t1 should be equal with t2 in any cases



This problem was due to a bug in the way we handled relative times as they crossed a daylight savings time boundary.  The bug has been fixed in 8.3b2.

- eric

-- 01/12/2000 ericm
welch Closed ticket [219005ffff]. [History diff]2000-10-26 08:33:08
dgp Ticket [219005ffff]: 3 changes [History diff]2001-04-05 06:56:32
Log in (anonymous is fine) to add a comment.