From 58cb016f28bcff7c3294b2c7479f9f4dc3cb5dc0 Mon Sep 17 00:00:00 2001 From: sualko Date: Thu, 17 Dec 2020 00:58:31 +0100 Subject: [PATCH] fix: join failure due to creation time converted to string in scientific notation. This happens only on some systems. --- lib/BigBlueButton/API.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/BigBlueButton/API.php b/lib/BigBlueButton/API.php index 2e88c27..5ac14ad 100644 --- a/lib/BigBlueButton/API.php +++ b/lib/BigBlueButton/API.php @@ -83,7 +83,8 @@ class API { $joinMeetingParams = new JoinMeetingParameters($room->uid, $displayname, $password); - $joinMeetingParams->setCreationTime($creationTime); + // ensure that float is not converted to a string in scientific notation + $joinMeetingParams->setCreationTime(sprintf("%.0f", $creationTime)); $joinMeetingParams->setJoinViaHtml5(true); $joinMeetingParams->setRedirect(true); $joinMeetingParams->setGuest($uid === null);