Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:56 • Ticket [218671ffff] Timer handler is not working correctly with daylight saving ... artifact: d3cab9d65a user: dgp
2000-10-26
08:26 • Closed ticket [218671ffff]. artifact: 283823d158 user: welch
01:03 • New ticket [218671ffff]. artifact: c29ffbc2d9 user: nobody

Timer handler is not working correctly with daylight saving

Closed / Fixed218671ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:03:57
OriginalBugID: 1690 Bug
Version: 8.0.5
SubmitDate: '1999-04-01'
LastModified: '2000-01-12'
Severity: MED
Status: Released
Submitter: pat
ChangedBy: ericm
OS: All
OSVersion: NA
Machine: NA
FixedDate: '2000-01-12'
FixedInVersion: 8.3b2
ClosedDate: '2000-10-25'


Tcl timer handler is not firing at the right time when we change to daylight saving time.



04/01/1999 14:33 - pat -According to Scott Stanton, we are not calculating the time based on GMT so it can be off 1 hour depending on whether we are on daylight saving or not.
--
This needs further definition.  In what way is the timer handler not
working correctly?  If you specify:
    after 3600000 [list puts done]
This will ask for something to be rescheduled in one hour.  Do you
expect this to trigger in the absolute number of seconds specified
in the after (that's what I'd expect - haven't checked behavior),
or did you expect it to trigger in 1 hour - according to the clock? 
-- 01/12/2000 hobbs

This is fixed in 8.3b2:

(on Linux)
date --set 10/31/1999 1:59:00
set t [clock seconds]; after 120000 {puts "$t; [clock seconds]"}
# 120 seconds later, we see...
941363940; 941364060

(on Windows NT)
(use control panel to set clock to 10/31/99, 01:59:00)
set t [clock seconds]; after 120000 {puts "$t; [clock seconds]"}
# 120 seconds later, we see...
941363940; 941364060

We see the same behaviour for the "spring ahead" transition on April 2, 2000 1:59:00.

- eric

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