Skip to content
Tcl Source Code View Ticket
Login

View Ticket

%Z clock format doesn't say GMT when -gmt true is passed to

Closed / Fixed218506ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:01:26
OriginalBugID: 740 Bug
Version: 8.0.3
SubmitDate: '1998-10-16'
LastModified: '1999-10-29'
Severity: LOW
Status: Released
Submitter: welch
ChangedBy: hobbs
RelatedBugIDs: 784 847 954 1245 1363
OS: All
OSVersion: NA
Machine: NA
FixedDate: '1999-10-29'
FixedInVersion: 8.1
ClosedDate: '2000-10-25'


 > I've changed line 688 in lib/httpd.tcl from:
 >   return [clock format $seconds -format {%a, %d %b %Y %T %Z} -gmt true]
 > to:
 >   return [clock format $seconds -format {%a, %d %b %Y %T GMT} -gmt true]
 > then restarted our tclhttpd, this fixes the problem.
 > 
 > Thanks to Larry, who detected this behavior on a server Alex and I are
 > fooling around with.
 > 
 > There is a deeper issue though - should [clock format ... -gmt true]
 > report its timezone as the local one?  Seems a bit illogical to me...
 >

Seems like the %Z should be aware of the -gmt flag.
--
This works as expect in 8.1. 
-- 10/29/1999 hobbs
welch Closed ticket [218506ffff]. [History diff]2000-10-26 08:23:18
dgp Ticket [218506ffff]: 3 changes [History diff]2001-04-05 06:56:33
Log in (anonymous is fine) to add a comment.