Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 2330b907248f4d814d7f94270e580f61658449a2
Ticket: 120922d1d47336163a0d75d803d8fdbed2fff3dd
[clock format] returns timezone [clock scan] doesn't understand
User & Date: anonymous on 2017-01-30 15:02:41
Changes

  1. assignee changed to: "nobody"
  2. closer changed to: "nobody"
  3. cmimetype changed to: "text/plain"
  4. comment changed to:
    Both of these work as expected:
    
      clock scan [clock format [clock seconds] -timezone EST]
      clock scan [clock format [clock seconds] -timezone :America/New_York]
    
    this works:
    
      clock format [clock seconds] -timezone :Kwajalein
    
    and returns "MHT" in the string. But this:
    
      clock scan [clock format [clock seconds] -timezone :Kwajalein]
    
    fails with "unable to convert date-time string 'Tue Jan 31 02:18:26 MHT 2017": syntax error (characters 19-22)"
    
    Chars 19-22 are " MHT".
    
    This fails to work at all:
    
      clock format [clock seconds] -timezone MHT
    
    "time zone MHT not found".
    
    I tried some other ideas, such as "+12" for the timezone. That worked like ":Kwajalein" did--returned a time string, but wouldn't scan it. ("+5" failed to even return a string. Seems inconsistent...)
    
    Tested 8.6.2 and 8.6.6, same behavior.
    
  5. foundin changed to: "8.6.6"
  6. is_private changed to: "0"
  7. login: "anonymous"
  8. priority changed to: "5 Medium"
  9. private_contact changed to: "3dd3b8c5b55592eaffd64fc61dd312a71bd3c68e"
  10. resolution changed to: "None"
  11. severity changed to: "Important"
  12. status changed to: "Open"
  13. submitter changed to: "anonymous"
  14. subsystem changed to: "06. Time Measurement"
  15. title changed to:
    [clock format] returns timezone [clock scan] doesn't understand
    
  16. type changed to: "Bug"