On Wednesday, January 24, 2018 at 2:39:48 PM UTC+1, Don Porter wrote:
>
> A possible solution:
>
> % clock format [clock seconds] -timezone America/Chicago
> Wed Jan 24 07:37:52 CST 2018
>
I wanted to report a bug concerning this, but I found there is already a ticket that describes the problem as well as the solution:
https://core.tcl.tk/tcl/tktview/1656002fffffffffffff
The essence is the legacy timezone abbreviations are ambiguous and the documentation does state that such timezones are only recognised in the context of the %z or %Z group. So:
clock format [clock seconds] -timezone :America/Chicago
is the proper way.
Nevertheless:
- The legacy timezones get quite some exposure in the man page, where the proper zone name do not.
- There is no simple way to get the standardized name. I would not associate Chicago with the western part of Tennessee, for instance.
- These legacy timezones are still ubiquitous.
Perhaps we can add a translation table to the man page to make this easier?
I will create a new ticket with this suggestion.
Regards,
Arjen