From: SourceForge.net <no...@so...> - 2007-07-31 14:12:33
|
Bugs item #1761672, was opened at 2007-07-27 10:55 Message generated for change (Comment added) made by coldstore You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1761672&group_id=10894 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: 06. Time Measurement Group: development: 8.5a7 Status: Pending Resolution: Works For Me Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Kevin B KENNY (kennykb) Summary: literal %T sneaking out for clock format %H:%M:%S Initial Comment: % 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 ---------------------------------------------------------------------- >Comment By: Colin McCormack (coldstore) Date: 2007-08-01 00:12 Message: 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. ---------------------------------------------------------------------- Comment By: Kevin B KENNY (kennykb) Date: 2007-07-31 07:40 Message: 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. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=110894&aid=1761672&group_id=10894 |