PHP 4.0 Bug #8909: PHP generates the Date: header line with a bad timezone

From: Date: Thu, 25 Jan 2001 16:54:32 +0000
Subject: PHP 4.0 Bug #8909: PHP generates the Date: header line with a bad timezone
Groups: php.dev 
Request: Send a blank email to php-dev+get-44993@lists.php.net to get a copy of this message
From: rthornto@pictel.com Operating system: Windows PHP version: 4.0.4pl1 PHP Bug Type: Mail related Bug description: PHP generates the Date: header line with a bad timezone If the PHP mail() function is allowed to generate the "Date:" header field, the sign of the timezone is inverted. The system "timezone" is the number of minutes difference between UTC and local time (EST= +300). In the Date: header, the timezone is formatted as "HHMM" and is the difference between local time and UTC (reversed difference, EST= -0500). In win32/sendmail.c, the sign of the system "timezone" variable is copied to the Date: header without being inverted. Also, there should be a sign even if the timezone offset is 0. Therefore in sprintf() that generates the "Date:" header in the PostHeader() function, the timezone test should read: (_timezone > 0) ? "-" : "+", This problem was also in the PHP3 source. Regard, -Ron- -- Edit Bug report at: http://bugs.php.net/?id=8909&edit=1

« previous php.dev (#44993) next »