Merge branch 'calendar' of git://anongit.kde.org/owncloud into calendar

This commit is contained in:
Jan-Christoph Borchardt 2011-08-30 21:01:10 +02:00
commit f758d223a2
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";