Bug in tcllib.smtpd.gmtoffset
From: Bob Binder (rbinder_at_rbsc.com)
Date: 04/12/04
- Next message: Mike Tuxford: "Re: Global Namespace Variables"
- Previous message: John H. Harris: "TIP #185: Null Handling"
- Next in thread: Pat Thoyts: "Re: Bug in tcllib.smtpd.gmtoffset"
- Reply: Pat Thoyts: "Re: Bug in tcllib.smtpd.gmtoffset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 12 Apr 2004 12:28:22 -0700
Package smtpd, proc gmtoffset produces incorrect output (sign
inverted) when calculating GMT offset.
For example, it returns
Sun, 11 Apr 2004 08:14:06 +0500
for CDT
When it should return
Sun, 11 Apr 2004 08:14:06 -0500
The bug is at line 354 of $Id: smtpd.tcl,v 1.12 2004/01/15 06:36:14
andreas_kupries Exp $
Which is
set off [expr {$zh - $lh}]
but apparently should be
set off [expr {$lh - $zh}]
Bob Binder
Bob underscore Binder a t mverify d o t com
- Next message: Mike Tuxford: "Re: Global Namespace Variables"
- Previous message: John H. Harris: "TIP #185: Null Handling"
- Next in thread: Pat Thoyts: "Re: Bug in tcllib.smtpd.gmtoffset"
- Reply: Pat Thoyts: "Re: Bug in tcllib.smtpd.gmtoffset"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]