diff options
author | redmatrix <git@macgirvin.com> | 2016-05-10 19:40:15 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-05-10 19:40:15 -0700 |
commit | 915bd2ec7745110919a4d386ae2b433a2c22701a (patch) | |
tree | e7ad91ad0b793b317e5713ab31d0ff7579082446 /include | |
parent | 0b02a6d123b2014705998c94ddf3d460948d3eac (diff) | |
download | volse-hubzilla-915bd2ec7745110919a4d386ae2b433a2c22701a.tar.gz volse-hubzilla-915bd2ec7745110919a4d386ae2b433a2c22701a.tar.bz2 volse-hubzilla-915bd2ec7745110919a4d386ae2b433a2c22701a.zip |
sabre upgrade
Diffstat (limited to 'include')
-rw-r--r-- | include/event.php | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/include/event.php b/include/event.php index 5e50d6cae..e41bf2db7 100644 --- a/include/event.php +++ b/include/event.php @@ -536,20 +536,10 @@ function event_import_ical($ical, $uid) { } $dtstart = $ical->DTSTART->getDateTime(); + $ev['adjust'] = (($ical->DTSTART->isFloating()) ? 1 : 0); // logger('dtstart: ' . var_export($dtstart,true)); -// @FIXME - convert/upgrade to vobject [3|4] -// switch($dtstart->timezone_type) { -// case VObject\Property\DateTime::UTC : -// $ev['adjust'] = 0; -// break; -// case VObject\Property\DateTime::LOCALTZ : -// default: -// $ev['adjust'] = 1; -// break; -// } - $ev['start'] = datetime_convert((($ev['adjust']) ? 'UTC' : date_default_timezone_get()),'UTC', $dtstart->format(\DateTime::W3C)); |