Add Temporal::local() shorthand for Temporal::convert()

This commit is contained in:
Hypolite Petovan 2018-01-26 19:33:46 -05:00
parent cbc89d147d
commit 13fb4a312d
2 changed files with 6 additions and 6 deletions

View file

@ -68,8 +68,8 @@ class Sabre_CalDAV_Backend_Friendica extends Sabre_CalDAV_Backend_Virtual
$component = dav_get_eventComponent($vevent);
if ($row["adjust"]) {
$start = Temporal::convert($row["start"], date_default_timezone_get());
$finish = Temporal::convert($row["finish"], date_default_timezone_get());
$start = Temporal::local($row["start"]);
$finish = Temporal::local($row["finish"]);
} else {
$start = $row["start"];
$finish = $row["finish"];
@ -116,8 +116,8 @@ class Sabre_CalDAV_Backend_Friendica extends Sabre_CalDAV_Backend_Virtual
private function jqcal2wdcal($row, $calendar, $base_path)
{
if ($row["adjust"]) {
$start = Temporal::convert($row["start"], date_default_timezone_get());
$finish = Temporal::convert($row["finish"], date_default_timezone_get());
$start = Temporal::local($row["start"]);
$finish = Temporal::local($row["finish"]);
} else {
$start = $row["start"];
$finish = $row["finish"];