summaryrefslogtreecommitdiffstats
path: root/apps/calendar
diff options
context:
space:
mode:
authorGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-08-29 13:41:19 +0200
committerGeorg Ehrke <georg.stefan.germany@googlemail.com>2011-08-29 13:41:19 +0200
commit6ad64c6f8a0f249357baa1dd897bbef733770432 (patch)
treeb42585bdf3ed6d63c8a58e0dd55a438918672d54 /apps/calendar
parent947216942ad26fc7580a344cb24456fa17e78b4c (diff)
downloadnextcloud-server-6ad64c6f8a0f249357baa1dd897bbef733770432.tar.gz
nextcloud-server-6ad64c6f8a0f249357baa1dd897bbef733770432.zip
Timezone bug fixed
Diffstat (limited to 'apps/calendar')
-rwxr-xr-xapps/calendar/ajax/newevent.php6
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";