Skip to content

Commit

Permalink
Plugin: Zoom: Use DATE_ATOM instead of DateTimeInterface::ISO8601 - r…
Browse files Browse the repository at this point in the history
…efs BT#19479
  • Loading branch information
AngelFQC committed Jan 27, 2022
1 parent 1443c2f commit 4ce944b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugin/zoom/lib/ZoomPlugin.php
Expand Up @@ -336,7 +336,7 @@ public function getEditMeetingForm($meeting)
if ($form->validate()) {
if ($meeting->requiresDateAndDuration()) {
$meetingInfoGet->start_time = (new DateTime($form->getSubmitValue('startTime')))->format(
DateTimeInterface::ISO8601
DATE_ATOM
);
$meetingInfoGet->timezone = date_default_timezone_get();
$meetingInfoGet->duration = (int) $form->getSubmitValue('duration');
Expand Down Expand Up @@ -1379,7 +1379,7 @@ private function createGlobalMeeting()
$this->get_lang('GlobalMeeting'),
MeetingInfoGet::TYPE_SCHEDULED
);
$meetingInfoGet->start_time = (new DateTime())->format(DateTimeInterface::ISO8601);
$meetingInfoGet->start_time = (new DateTime())->format(DATE_ATOM);
$meetingInfoGet->duration = 60;
$meetingInfoGet->settings->approval_type =
('true' === $this->get('enableParticipantRegistration'))
Expand Down Expand Up @@ -1420,7 +1420,7 @@ private function createScheduleMeeting(
) {
$meetingInfoGet = MeetingInfoGet::fromTopicAndType($topic, MeetingInfoGet::TYPE_SCHEDULED);
$meetingInfoGet->duration = $duration;
$meetingInfoGet->start_time = $startTime->format(DateTimeInterface::ISO8601);
$meetingInfoGet->start_time = $startTime->format(DATE_ATOM);
$meetingInfoGet->agenda = $agenda;
$meetingInfoGet->password = $password;
$meetingInfoGet->settings->approval_type = MeetingSettings::APPROVAL_TYPE_NO_REGISTRATION_REQUIRED;
Expand Down

0 comments on commit 4ce944b

Please sign in to comment.