mirror of
https://github.com/YunoHost-Apps/z-push_ynh.git
synced 2024-09-03 18:05:58 +02:00
Update to latest sources
This commit is contained in:
parent
3c87adeda5
commit
2f643f9c53
2 changed files with 7 additions and 0 deletions
|
@ -1112,6 +1112,11 @@ class TimezoneUtil {
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
static public function GetFullTZFromTZName($tzname) {
|
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];
|
$offset = self::$tzonesoffsets[$tzname];
|
||||||
|
|
||||||
$tz = array(
|
$tz = array(
|
||||||
|
|
|
@ -5,6 +5,8 @@ require_once 'vendor/autoload.php';
|
||||||
define('LOGLEVEL', LOGLEVEL_DEBUG);
|
define('LOGLEVEL', LOGLEVEL_DEBUG);
|
||||||
define('LOGUSERLEVEL', LOGLEVEL_DEVICEID);
|
define('LOGUSERLEVEL', LOGLEVEL_DEVICEID);
|
||||||
|
|
||||||
|
date_default_timezone_set('Europe/Madrid');
|
||||||
|
|
||||||
$body = file_get_contents('testing/samples/meeting_request.txt');
|
$body = file_get_contents('testing/samples/meeting_request.txt');
|
||||||
|
|
||||||
$ical = new iCalComponent();
|
$ical = new iCalComponent();
|
||||||
|
|
Loading…
Add table
Reference in a new issue