From 2f643f9c5344ad787948fd8339dc4026477d61a0 Mon Sep 17 00:00:00 2001 From: polytan02 Date: Sun, 16 Aug 2015 18:40:51 +0100 Subject: [PATCH] Update to latest sources --- sources/lib/utils/timezoneutil.php | 5 +++++ sources/testing/testing-imap_meeting.php | 2 ++ 2 files changed, 7 insertions(+) diff --git a/sources/lib/utils/timezoneutil.php b/sources/lib/utils/timezoneutil.php index 0926ed8..1aec962 100644 --- a/sources/lib/utils/timezoneutil.php +++ b/sources/lib/utils/timezoneutil.php @@ -1112,6 +1112,11 @@ class TimezoneUtil { * @return array */ static public function GetFullTZFromTZName($tzname) { + if (!array_key_exists($tzname, self::$tzonesoffsets)) { + ZLog::Write(LOGLEVEL_DEBUG, sprintf("TimezoneUtil::GetFullTZFromTZName('%s'): Is a PHP TimeZone, converting", $tzname)); + $tzname = self::guessTZNameFromPHPName($tzname); + } + $offset = self::$tzonesoffsets[$tzname]; $tz = array( diff --git a/sources/testing/testing-imap_meeting.php b/sources/testing/testing-imap_meeting.php index 22006ad..03ce136 100644 --- a/sources/testing/testing-imap_meeting.php +++ b/sources/testing/testing-imap_meeting.php @@ -5,6 +5,8 @@ require_once 'vendor/autoload.php'; define('LOGLEVEL', LOGLEVEL_DEBUG); define('LOGUSERLEVEL', LOGLEVEL_DEVICEID); +date_default_timezone_set('Europe/Madrid'); + $body = file_get_contents('testing/samples/meeting_request.txt'); $ical = new iCalComponent();