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();