mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-11 10:58:48 +00:00
Add Temporal::local() shorthand for Temporal::convert()
This commit is contained in:
parent
cbc89d147d
commit
13fb4a312d
2 changed files with 6 additions and 6 deletions
|
@ -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"];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue