Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: acc33c856cb13f13ab74d3f050173d22efd19e42
Ticket: 218376ffffffffffffffffffffffffffffffffff
Command [clock scan "10/29/00 1 days"] returns incorrect dat
User & Date: nobody on 2000-10-26 00:56:51
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 4316 Bug
    Version: 8.1
    SubmitDate: '2000-03-06'
    LastModified: '2000-03-10'
    Severity: MED
    Status: Closed
    Submitter: techsupp
    ChangedBy: ericm
    OS: Windows NT
    OSVersion: Windows NT
    Machine: IBM Compatible
    FixedDate: '2000-10-25'
    ClosedDate: '2000-03-10'
    
    
    Name:
    Christian G. Jantz
    
    Extensions:
    None
    
    CustomShell:
    None
    
    ReproducibleScript:
    I have been experiment with Tcl80 and Tcl81. The clock scan command does not always return the date which I expect.
    When I run this two line program, if I use tcl80, I get 10/30/00. If I use tcl81, I get 10/29/00.
    set GoalDate [ clock format [ clock scan "10/29/00 1 days" ] -format "%D" ]
    puts "$GoalDate"
    
    ObservedBehavior:
    The date being returned is not what I expect.
    
    
    
    This is most likely because of the daylight savings time rollover that occurs on that date.  Without knowing what timezone you are in, I cannot be 100% certain that is the problem you are seeing, but I am reasonably confident that it is.
    
    The problem has been fixed as of 8.3.0, in which we overhauled parts of the clock scan subsystem so that it would handle DST conversions properly.  Now with 8.3.0, I see the following result:
    
    % info patch
    8.3.0
    % clock format [clock scan "10/29/00 1 days"]
    Mon Oct 30 00:00:00 PST 2000
    % 
    
    - eric
    
    -- 03/10/2000 ericm
    
    
    
  4. foundin changed to: "obsolete: 8.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to:
    Command [clock scan "10/29/00 1 days"] returns incorrect dat
    
  11. type changed to: "Bug"