Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 92f7ccf78d3cee0e4df8732fc5d918898c4e02a5
Ticket: 1832808fffffffffffffffffffffffffffffffff
time zones unrecognized [?]
User & Date: kennykb on 2008-02-27 09:05:57
Changes

  1. closedate changed to: "2008-02-27T02:05:57"
  2. closer changed to: "kennykb"
  3. icomment:
    Logged In: YES 
    user_id=99768
    Originator: NO
    
    The legacy time zone names like 'pst' are intentionally not accepted in the -timezone argument, but only in the date/time strings presented to the parser.  They are rejected because they are ambiguous; is "BST" "Brazilian Standard Time" or "British Summer Time?". They are also generally not what is desired for -timezone, because they are unaware of Daylight Saving Time and similar changes. (They must be accepted in input date/time strings, for compatibility with versions of Tcl prior to 8.5).
    
    To get the effect that you're after, use:
    
    clock scan "17:53" -timezone :America/Los_Angeles
                                                   (US)
    or
    
    clock scan "17:53" -timezone :America/Vancouver
    clock scan "17:53" -timezone :America/Whitehorse
    clock scan "17:53" -timezone :America/Dawson
                                                   (Canada)
    
    or 
    
    clock scan "17:53" -timezone :America/Tijuana
    clock scan "17:53" -timezone :America/Mazatlan
    clock scan "17:53" -timezone :America/Hermosillo
                                                   (Mexico)
    
    and you'll get the correct locale-dependent Daylight Saving Time rules.
    
    
  4. login: "kennykb"
  5. mimetype: "text/plain"
  6. resolution changed to: "Invalid"
  7. status changed to: "Closed"
  8. username: "kennykb"