aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php
diff options
context:
space:
mode:
authorThomas Willingham <founder@kakste.com>2014-04-12 18:13:37 +0100
committerThomas Willingham <founder@kakste.com>2014-04-12 18:13:37 +0100
commitcdc8454cf112006e4199b6221bcaa3c3a509b564 (patch)
tree267293b7f5536bda899324af8913549baf4c4c72 /vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php
parent2fdcd0c27eac389709f48d6b40723e153c1492e6 (diff)
downloadvolse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.tar.gz
volse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.tar.bz2
volse-hubzilla-cdc8454cf112006e4199b6221bcaa3c3a509b564.zip
Update sabre
Diffstat (limited to 'vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php')
-rw-r--r--vendor/sabre/vobject/tests/Sabre/VObject/TimeZoneUtilTest.php13
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());
}