From 6ad64c6f8a0f249357baa1dd897bbef733770432 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Mon, 29 Aug 2011 13:41:19 +0200 Subject: [PATCH] Timezone bug fixed --- apps/calendar/ajax/newevent.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/apps/calendar/ajax/newevent.php b/apps/calendar/ajax/newevent.php index b51208f680..93eaef66d1 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";