|
2007-08-14
| ||
| 09:20 | • Closed ticket [1761672fff]: literal %T sneaking out for clock format %H:%M:%S</i... artifact: 4202ec755f user: sf-robot | |
|
2007-07-31
| ||
| 21:12 | • Ticket [1761672fff]: 4 changes artifact: 1ab7a8f134 user: coldstore | |
| 04:40 | • Pending ticket [1761672fff]. artifact: deb0b83062 user: kennykb | |
|
2007-07-27
| ||
| 00:55 | • New ticket [1761672fff]. artifact: 3d30524603 user: nobody | |
literal %T sneaking out for clock format %H:%M:%S
Closed / Works For Me1761672fffffffffffffffffffffffffffffffffCreated 19 years agoUpdated 19 years ago
Descriptionplain2007-07-27 00:55:37
% set f "%a, %d %b %Y %H:%M:%S GMT" %a, %d %b %Y %H:%M:%S GMT % clock format [clock seconds] -format $f -gmt 1 Fri, 27 Jul 2007 %T GMT % set f "%a, %d %b %Y %T GMT" %a, %d %b %Y %T GMT % clock format [clock seconds] -format $f -gmt 1 Fri, 27 Jul 2007 00:46:40 GMT
kennykbplain2007-07-31 04:40:36
Logged In: YES
user_id=99768
Originator: NO
Identical input, as far as I can tell, against the HEAD:
% set f "%a, %d %b %Y %H:%M:%S GMT"
%a, %d %b %Y %H:%M:%S GMT
% clock format [clock seconds] -format $f -gmt 1
Mon, 30 Jul 2007 17:34:48 GMT
Is your Tcl self-built, or did you get it from a known distribution?
The reason that I ask is that I suspect a corrupted 'clock.tcl' -
specifically the code in the procedure ::tcl::clock::LocalizeFormat
that looks like:
set format [string map [list %r [mc TIME_FORMAT_12] \
%R [mc TIME_FORMAT_24] \
%T [mc TIME_FORMAT_24_SECS]] $format]
That's the only place that %T is handled. And it's pretty clear that
it replaces %T with %H:%M:%S, not the other way around.
Can you check that your $::tcl_library/clock.tcl matches the HEAD?
I haven't done anything to clock.tcl since April, and as I said,
it Works For Me.
coldstoreplain2007-07-31 21:12:35
Logged In: YES user_id=19214 Originator: NO I have tried the same code on different machines with identical clock.tcl - one exhibits the problem, the other doesn't. Could it have something to do with timezone? The only difference I can think of between the two machines is that they're in different timezones.
sf-robotplain2007-08-14 09:20:07
Logged In: YES user_id=1312539 Originator: NO This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker).
Log in (anonymous is fine) to add a comment.