From 4ce944bb2301a2dfdbca959cd14963e0791abe1b Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Wed, 12 Jan 2022 16:53:10 -0500 Subject: [PATCH] Plugin: Zoom: Use DATE_ATOM instead of DateTimeInterface::ISO8601 - refs BT#19479 --- plugin/zoom/lib/ZoomPlugin.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugin/zoom/lib/ZoomPlugin.php b/plugin/zoom/lib/ZoomPlugin.php index 8e181cd4a8..c168010c96 100644 --- a/plugin/zoom/lib/ZoomPlugin.php +++ b/plugin/zoom/lib/ZoomPlugin.php @@ -336,7 +336,7 @@ class ZoomPlugin extends Plugin 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'); @@ -1379,7 +1379,7 @@ class ZoomPlugin extends Plugin $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')) @@ -1420,7 +1420,7 @@ class ZoomPlugin extends Plugin ) { $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;