Timezone bug fixed
This commit is contained in:
parent
947216942a
commit
6ad64c6f8a
|
@ -121,11 +121,7 @@ if($errnum != 0){
|
||||||
exit;
|
exit;
|
||||||
}else{
|
}else{
|
||||||
$data = "BEGIN:VCALENDAR\nPRODID:ownCloud Calendar\nVERSION:2.0\n";
|
$data = "BEGIN:VCALENDAR\nPRODID:ownCloud Calendar\nVERSION:2.0\n";
|
||||||
if(OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone") == ""){
|
$timezone = OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone", "Europe/London");
|
||||||
$timezone = "Europe/London";
|
|
||||||
}else{
|
|
||||||
$timezone = OC_Preferences::getValue(OC_USER::getUser(), "calendar", "timezone");
|
|
||||||
}
|
|
||||||
$created = date("Ymd") . "T" . date("His");
|
$created = date("Ymd") . "T" . date("His");
|
||||||
$data .= "BEGIN:VEVENT\n";
|
$data .= "BEGIN:VEVENT\n";
|
||||||
$data .= "CREATED:" . $created . "\nLAST-MODIFIED:" . $created . "\nDTSTAMP:" . $created . "\n";
|
$data .= "CREATED:" . $created . "\nLAST-MODIFIED:" . $created . "\nDTSTAMP:" . $created . "\n";
|
||||||
|
|
Loading…
Reference in New Issue