mirror of
https://github.com/php/php-src.git
synced 2024-11-29 21:04:10 +08:00
- Fix a bug in timezones +0100 and -0100
This commit is contained in:
parent
77111db912
commit
896faf0b34
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user