Tcl Source Code

View Ticket
Login
Ticket UUID: 120922d1d47336163a0d75d803d8fdbed2fff3dd
Title: [clock format] returns timezone [clock scan] doesn't understand
Type: Bug Created on: 2017-01-30 15:02:41
Submitter: anonymous Assigned to: nobody
Subsystem: 06. Time Measurement Severity: Important
Priority: 5 Medium Last modified: 2017-01-30 15:02:41
Status: Open Closed by: nobody
Resolution: None Closed on:
Version: 8.6.6
Description:
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.