Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-05
06:56 • Ticket [217971ffff] Clock scan -1 month produces wrong year status still Clo... artifact: 65bd983ca7 user: dgp
2000-10-26
08:10 • Closed ticket [217971ffff]. artifact: 0f6c6cf456 user: welch
00:46 • New ticket [217971ffff]. artifact: 0340913a41 user: nobody

Clock scan -1 month produces wrong year

Closed / Fixed217971ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:46:58
OriginalBugID: 5071 Bug
Version: 8.3
SubmitDate: '2000-04-13'
LastModified: '2000-04-13'
Severity: SER
Status: Closed
Submitter: shawn
ChangedBy: redman
RelatedBugIDs: 5070
OS: Windows NT
FixedDate: '2000-10-25'
ClosedDate: '2000-04-13'


Clock goes back 13 months instead of 1 


Reproducible steps:
#A Date in Jan 2001 
% set prev_month 979444800
979444800
% clock format 979444800
Sat Jan 13 20:00:00 Pacific Standard Time 2001
# Scan back a month
% set prev_month [clock scan {-1 month} -base [clock scan $date ]]
can't read "date": no such variable
% set date "Sat Jan 13 2001"
Sat Jan 13 2001
% set prev_month [clock scan {-1 month} -base [clock scan $date ]]
945144060
# Expect Dec 2000
% clock format $prev_month
Mon Dec 13 20:01:00 Pacific Standard Time 1999
%
welch Closed ticket [217971ffff]. [History diff]2000-10-26 08:10:57
dgp Ticket [217971ffff]: 3 changes [History diff]2001-04-05 06:56:34
Log in (anonymous is fine) to add a comment.