Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-08-19
20:47 • Ticket [913513ffff] clock scan returns wrong day in gmt status still Closed ... artifact: 5e4e4687f0 user: kennykb
20:47 • Closed ticket [913513ffff]. artifact: 3b2cf54c6c user: kennykb
2004-05-19
03:32 • Open ticket [913513ffff]. artifact: 7c6e678046 user: kennykb
2004-03-10
23:17 • Closed ticket [913513ffff]. artifact: d0322a659e user: kennykb
22:31 • Ticket [913513ffff]: 4 changes artifact: 078d08cffb user: kennykb
22:31 • Add attachment badclock.tcl to ticket [913513ffff] artifact: f26faf71d2 user: kennykb
21:40 • Ticket [913513ffff] clock scan returns wrong day in gmt status still Open wi... artifact: d8abd89516 user: silpheed
21:36 • Add attachment TEST to ticket [913513ffff] artifact: acfa2bfc30 user: silpheed
21:36 • Ticket [913513ffff] clock scan returns wrong day in gmt status still Open wi... artifact: 3ca4ea67af user: silpheed
14:36 • New ticket [913513ffff]. artifact: 74a3683626 user: silpheed

clock scan returns wrong day in gmt

Closed / Fixed913513ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 22 years ago
Descriptionplain2004-03-10 14:36:06
clock scan with gmt fails to return the proper day until 
your time zone changes to the next day.

Ex.

I am in CST and if I run a [clock scan "1600Z" ] or [clock 
scan "1600Z" -gmt true] or [clock scan "1600" -gmt 
true] during the actual time frame of 00:00Z to 05:59Z, 
it will return the previous day. It appears that the day 
elements is not getting altered based on the GMT time 
but by your own time zone instead. Included is a test 
file that was run on the hour for several hours that 
shows the problem.
silpheedplain2004-03-10 21:36:06
File Added - 79578: TEST
silpheedplain2004-03-10 21:40:51
Logged In: YES 
user_id=963204

Hit submit too soon. What I am expecting is that clock scan 
would return the proper seconds for the gmt day because I 
am running a GMT based scheduler that would kick off all of 
events at the beginning of the GMT day no matter the actual 
scheduled time b/c of this problem.
kennykbplain2004-03-10 22:31:43
File Added - 79593: badclock.tcl

Logged In: YES 
user_id=99768

Problem verified on Win2k. Thanks for reporting
the bug clearly enough to allow it to be
reproduced.

A workaround is to supply a date explicitly to the 
[clock scan].

The attached script, "workaround.tcl" shows a 
minimal exampleof the problem and how to work
around it.
kennykbplain2004-03-10 23:17:50
Logged In: YES 
user_id=99768

(Partial) fix committed to the HEAD; [clock scan 1600 -gmt true]
will now return the correct date in any time zone.  The full fix
(where an explicit time zone is specified) is incompatible with
the current parser (base time is broken into fields before the
time zone is parsed); for this reason [clock scan 1600Z] will
still fail.
kennykb Open ticket [913513ffff]. [History diff]2004-05-19 03:32:19
kennykbplain2004-08-19 20:47:49
Logged In: YES 
user_id=99768

Full fix implemented in 8.5
kennykb Ticket [913513ffff]: 2 changes [History diff]2004-08-19 20:47:50
Log in (anonymous is fine) to add a comment.

Attachments: