[PHP-DEV] Bug #14282 Updated: wrong strtotime calculation with timezones -0100 and +0100
ID: 14282 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Date/time related Operating System: any PHP Version: 4.1.0 New Comment: This was not fixed yet in CVS. It is now however. Derick Previous Comments: [2001-12-02 02:57:16] [EMAIL PROTECTED] Thanks - Fixed in CVS [2001-11-29 09:38:54] [EMAIL PROTECTED] This code: ?php $now = date('r'); $stamp = strtotime($now); $conv = date('r', $stamp); echo $now\n$conv; ? produces this output: Thu, 29 Nov 2001 15:24:21 +0100 Sun, 25 Nov 2001 12:24:21 +0100 This is the fix: --- parsedate.y~Thu Nov 15 15:33:41 2001 +++ parsedate.y Thu Nov 29 15:28:52 2001 @@ -255,7 +255,7 @@ yySeconds = $5; yyMeridian = MER24; yyHaveZone++; - if ($6 -100 || $6 100) { + if ($6 = -100 || $6 = 100) { yyTimezone = -$6 % 100 + (-$6 / 100) * 60; } else { yyTimezone = -$6 * 60; Edit this bug report at http://bugs.php.net/?id=14282edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DEV] Bug #14282 Updated: wrong strtotime calculation with timezones -0100 and +0100
On December 2, 2001 04:35 am, you wrote: ID: 14282 Updated by: derick Reported By: [EMAIL PROTECTED] Status: Closed Bug Type: Date/time related Operating System: any PHP Version: 4.1.0 New Comment: This was not fixed yet in CVS. It is now however. Thanks for the catch - I misread your earlier commit to the same file as having corrected this bug. :) --zak -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DEV] Bug #14282 Updated: wrong strtotime calculation with timezones -0100 and +0100
ID: 14282 Updated by: zak Reported By: [EMAIL PROTECTED] Old Status: Open Status: Closed Bug Type: Date/time related Operating System: any PHP Version: 4.1.0 New Comment: Thanks - Fixed in CVS Previous Comments: [2001-11-29 09:38:54] [EMAIL PROTECTED] This code: ?php $now = date('r'); $stamp = strtotime($now); $conv = date('r', $stamp); echo $now\n$conv; ? produces this output: Thu, 29 Nov 2001 15:24:21 +0100 Sun, 25 Nov 2001 12:24:21 +0100 This is the fix: --- parsedate.y~Thu Nov 15 15:33:41 2001 +++ parsedate.y Thu Nov 29 15:28:52 2001 @@ -255,7 +255,7 @@ yySeconds = $5; yyMeridian = MER24; yyHaveZone++; - if ($6 -100 || $6 100) { + if ($6 = -100 || $6 = 100) { yyTimezone = -$6 % 100 + (-$6 / 100) * 60; } else { yyTimezone = -$6 * 60; Edit this bug report at http://bugs.php.net/?id=14282edit=1 -- PHP Development Mailing List http://www.php.net/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]