diff options
author | Georg Ehrke <georg.stefan.germany@googlemail.com> | 2011-08-29 13:41:19 +0200 |
---|---|---|
committer | Georg Ehrke <georg.stefan.germany@googlemail.com> | 2011-08-29 13:41:19 +0200 |
commit | 6ad64c6f8a0f249357baa1dd897bbef733770432 (patch) | |
tree | b42585bdf3ed6d63c8a58e0dd55a438918672d54 /apps/calendar | |
parent | 947216942ad26fc7580a344cb24456fa17e78b4c (diff) | |
download | nextcloud-server-6ad64c6f8a0f249357baa1dd897bbef733770432.tar.gz nextcloud-server-6ad64c6f8a0f249357baa1dd897bbef733770432.zip |
Timezone bug fixed
Diffstat (limited to 'apps/calendar')
-rwxr-xr-x | apps/calendar/ajax/newevent.php | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/apps/calendar/ajax/newevent.php b/apps/calendar/ajax/newevent.php index b51208f680a..93eaef66d17 100755 --- a/apps/calendar/ajax/newevent.php +++ b/apps/calendar/ajax/newevent.php @@ -121,11 +121,7 @@ if($errnum != 0){ exit; }else{ $data = "BEGIN:VCALENDAR\nPRODID:ownCloud Calendar\nVERSION:2.0\n"; - if(OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone") == ""){ - $timezone = "Europe/London"; - }else{ - $timezone = OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone"); - } + $timezone = OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone", "Europe/London"); $created = date("Ymd") . "T" . date("His"); $data .= "BEGIN:VEVENT\n"; $data .= "CREATED:" . $created . "\nLAST-MODIFIED:" . $created . "\nDTSTAMP:" . $created . "\n"; |