Timezone bug fixed

This commit is contained in:
Georg Ehrke 2011-08-29 13:41:19 +02:00
parent 947216942a
commit 6ad64c6f8a
1 changed files with 1 additions and 5 deletions

View File

@ -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";