Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 95daaf3851e1d1f3da6030bc49c100927d84b659
Ticket: 2886853fffffffffffffffffffffffffffffffff
[clock] fails to populate TZData array
User & Date: ahurt on 2009-10-27 02:56:31
Changes

  1. assignee changed to: "kennykb"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    [clock] will not populate the TZData if you scan without a date against a timezone that has not yet been seen in the current interp... example:
    
    [ahurt@charlie ~]$ tclsh
    % info patchlevel
    8.5.7
    % array names ::tcl::clock::TZData
    % clock scan 1200 -timezone {:America/New_York} -format {%H%M}
    can't read "TZData(:America/New_York)": no such element in array
    % array names ::tcl::clock::TZData
    :localtime :Etc/UTC :Etc/GMT :Tcl/Localtime :UTC :GMT
    % clock scan 20010101 -timezone {:America/New_York} -format {%Y%m%d}
    978325200
    % array names ::tcl::clock::TZData
    :localtime :America/New_York :Etc/UTC :Etc/GMT :Tcl/Localtime :UTC :GMT
    % clock scan 1200 -timezone {:America/New_York} -format {%H%M}
    1256572800
    % 
    
    
  4. foundin changed to: "obsolete: 8.5.7"
  5. is_private changed to: "0"
  6. priority changed to: "5 Medium"
  7. resolution changed to: "None"
  8. status changed to: "Open"
  9. submitter changed to: "ahurt"
  10. subsystem changed to: "06. Time Measurement"
  11. title changed to: "[clock] fails to populate TZData array"
  12. type changed to: "Bug"