Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-13
23:27 • Ticket [217857ffff] generic/tclDate.c incorrect leap year handling status st... artifact: d854c7690d user: dgp
2000-10-26
07:59 • Closed ticket [217857ffff]. artifact: dbc23dc8ac user: welch
00:44 • New ticket [217857ffff]. artifact: 73294a18ed user: nobody

generic/tclDate.c incorrect leap year handling

Closed / Invalid217857ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:44:58
OriginalBugID: 1985 Bug
Version: 8.0.5
SubmitDate: '1999-05-04'
LastModified: '1999-05-14'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: pat
RelatedBugIDs: 2066
OS: All
OSVersion: NA
Machine: NA
FixedDate: '2000-10-25'
FixedInVersion: NA
ClosedDate: '1999-05-14'


Name:  Isaac Hollander
email:  [email protected]
Support:  None
Severity:  3
OperatingSystem:  Sun Solaris
Synopsis:  generic/tclDate.c incorrect leap year handling

ReproducibleScript:
    the Convert() routine incorrectly handles leap years such as 1900, 2000,
    2100, etc.  You correctly determine the number of days in February for
    the current year, but later simply check for divisibility by 4 when
    accumulating the number of days in all previous years.  You need to
    determine leapness consistently in the correct way.
welch Closed ticket [217857ffff]. [History diff]2000-10-26 07:59:48
dgp Ticket [217857ffff]: 3 changes [History diff]2001-04-13 23:27:15
Log in (anonymous is fine) to add a comment.