mirror of
https://github.com/php/php-src.git
synced 2026-04-27 10:16:41 +02:00
- Fix a bug in timezones +0100 and -0100
This commit is contained in:
@@ -255,7 +255,7 @@ time : tUNUMBER tMERIDIAN {
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user