|
2003-07-31
| ||
| 22:21 | • Closed ticket [574573ffff]: clock format gets wrong timezone, once plus 3 ot... artifact: ef8fa8da11 user: rmax | |
| 22:02 | • Ticket [574573ffff]: 4 changes artifact: 446c8e8349 user: techentin | |
| 21:44 | • Ticket [574573ffff]: 4 changes artifact: 5eedc99329 user: rmax | |
|
2002-07-03
| ||
| 04:47 | • Ticket [574573ffff]: 4 changes artifact: b364e79b74 user: techentin | |
|
2002-06-29
| ||
| 22:54 | • Ticket [574573ffff]: 4 changes artifact: 4534c1214c user: rmax | |
|
2002-06-27
| ||
| 21:06 | • Ticket [574573ffff]: 1 change artifact: 7b75e2f8ee user: dkf | |
| 21:05 | • Ticket [574573ffff]: 5 changes artifact: f2680a0d2e user: dkf | |
| 13:24 | • New ticket [574573ffff]. artifact: 6a5701e875 user: techentin | |
clock format gets wrong timezone, once
Closed / Works For Me574573ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2002-06-27 13:24:34
Tcl Versions 8.3.4 and 8.4a4.
Platform DEC Alpha OSF1 v4.0
DEC C V5.8-009 on Digital UNIX V4.0
==== clock-3.2 clock format tests FAILED
==== Contents of test case:
# TCL_USE_TIMEZONE_VAR
catch {set oldtz $env(TZ)}
set env(TZ) PST
set x {}
append x [clock format 863800000 -format %Z -gmt 1]
append x [set env(TZ)]
catch {unset env(TZ); set env(TZ) $oldtz}
set x
---- Result was:
CSTPST
---- Result should have been:
GMTPST
==== clock-3.2 FAILED
On closer inspection, it appears that [clock format]
returns the wrong timezone only one time after changing
the env(TZ) variable. Subsequent calls to [clock format]
return the proper timezone. for example:
./tclsh
% set env(TZ)
% clock format 863800000 -format %Z -gmt 1
GMT
% set env(TZ) PST
PST
% clock format 863800000 -format %Z -gmt 1
CST
% clock format 863800000 -format %Z -gmt 1
GMT
% clock format 863800000 -format %Z -gmt 1
GMT
%
It doesn't seem to matter if env(TZ) is set prior to
entering tclsh. This problem also does not appear on
HP-UX or Win32. Maybe it is a 64 bit thing.
dkfplain2002-06-27 21:05:18
Logged In: YES user_id=79902 Reinhard was doing something in this are recently. (Can't reproduce on Solaris/SPARC)
dkf Ticket [574573ffff]: 1 change
[History diff]2002-06-27 21:06:59
rmaxplain2002-06-29 22:54:34
Logged In: YES user_id=124643 My changes only affect locales, not timezones, and I only changed 8.4, not 8.3. It also doesn't happen on any of the many 32 and 64 bit platforms I have at hand. Maybe the systenm's strftime() function is to blame.
techentinplain2002-07-03 04:47:34
Logged In: YES user_id=43494 Well, if I've got the only hardware on the planet that is affected, then it may be difficult to figure out. Our somewhat crusty alpha doesn't have a functioning debugger, so I can't supply any insights at this time.
rmaxplain2003-07-31 21:44:54
Logged In: YES user_id=124643 Any news on this one? Otherwise I suggest to close it.
techentinplain2003-07-31 22:02:17
Logged In: YES user_id=43494 Closing this report is fine with me. I haven't heard anyone else complain about clock-3.2 failing. Our old alpha box isn't online any more, so I can't even reproduce the problem.
rmax Closed ticket [574573ffff].
[History diff]2003-07-31 22:21:28
Log in (anonymous is fine) to add a comment.