Plugins: Zoom fix meeting timezone #3475

pull/3547/head
Julio Montoya 5 years ago
parent 62ef5d7ec9
commit 2c47a6ef49
  1. 2
      plugin/zoom/Entity/Meeting.php
  2. 2
      plugin/zoom/Entity/Recording.php

@ -593,7 +593,7 @@ class Meeting
$this->formattedDuration = '';
if (!empty($this->meetingInfoGet->start_time)) {
$this->startDateTime = new DateTime($this->meetingInfoGet->start_time);
$this->startDateTime->setTimezone(new DateTimeZone(date_default_timezone_get()));
$this->startDateTime->setTimezone(new DateTimeZone(api_get_timezone()));
$this->formattedStartTime = $this->startDateTime->format('Y-m-d H:i');
}

@ -181,7 +181,7 @@ class Recording
public function initializeExtraProperties()
{
$this->startDateTime = new DateTime($this->recordingMeeting->start_time);
$this->startDateTime->setTimezone(new DateTimeZone(date_default_timezone_get()));
$this->startDateTime->setTimezone(new DateTimeZone(api_get_timezone()));
$this->formattedStartTime = $this->startDateTime->format('Y-m-d H:i');
$now = new DateTime();

Loading…
Cancel
Save