diff options
author | Mario Vavti <mario@mariovavti.com> | 2019-06-03 22:37:03 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2019-06-03 22:37:03 +0200 |
commit | f1b54cf0a49afcaa7b5a8d5f8fb35a4da72b6b85 (patch) | |
tree | f903351191348b91119cb337159d4d6d15f0e736 /include/event.php | |
parent | 2b452ea3e8dca9324ebea6031b3060e6c27d5526 (diff) | |
download | volse-hubzilla-f1b54cf0a49afcaa7b5a8d5f8fb35a4da72b6b85.tar.gz volse-hubzilla-f1b54cf0a49afcaa7b5a8d5f8fb35a4da72b6b85.tar.bz2 volse-hubzilla-f1b54cf0a49afcaa7b5a8d5f8fb35a4da72b6b85.zip |
do not change default timezone in parse_ical_file()
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/include/event.php b/include/event.php index f1a095d1d..6689919cf 100644 --- a/include/event.php +++ b/include/event.php @@ -760,13 +760,6 @@ function parse_ical_file($f,$uid) { $s = @file_get_contents($f); - // Change the current timezone to something besides UTC. - // Doesn't matter what it is, as long as it isn't UTC. - // Save the current timezone so we can reset it when we're done processing. - - $saved_timezone = date_default_timezone_get(); - date_default_timezone_set('Australia/Sydney'); - $ical = VObject\Reader::read($s); if($ical) { @@ -782,8 +775,6 @@ function parse_ical_file($f,$uid) { } } - date_default_timezone_set($saved_timezone); - if($ical) return true; |