diff options
Diffstat (limited to 'vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php')
-rw-r--r-- | vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php b/vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php index 7f76353d2..b898e8d26 100644 --- a/vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php +++ b/vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php @@ -144,7 +144,12 @@ HI; function testTimezoneOffset() { $tz = TimeZoneUtil::getTimeZone('GMT-0400', null, true); - $ex = new \DateTimeZone('Etc/GMT-4'); + + if (version_compare(PHP_VERSION, '5.5.10', '>=')) { + $ex = new \DateTimeZone('-04:00'); + } else { + $ex = new \DateTimeZone('Etc/GMT-4'); + } $this->assertEquals($ex->getName(), $tz->getName()); } @@ -289,7 +294,11 @@ END:VCALENDAR HI; $tz = TimeZoneUtil::getTimeZone('/freeassociation.sourceforge.net/Tzfile/SystemV/EST5EDT', Reader::read($vobj), true); - $ex = new \DateTimeZone('EST5EDT'); + if (version_compare(PHP_VERSION, '5.5.10', '>=')) { + $ex = new \DateTimeZone('America/New_York'); + } else { + $ex = new \DateTimeZone('EST5EDT'); + } $this->assertEquals($ex->getName(), $tz->getName()); } |