From 57bb2ead36856a9474755567dfbd13621f5edee5 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Thu, 9 Apr 2020 15:15:54 +0200 Subject: [PATCH] Conference timer should start counting at 0 It's starting at 1 hour because os.time(os.date("!*t") returns the wrong time depending on system timezone. os.time() already returns the number of seconds since epoch in UTC so just use that. Fixes #5595 --- resources/prosody-plugins/mod_conference_duration_component.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/prosody-plugins/mod_conference_duration_component.lua b/resources/prosody-plugins/mod_conference_duration_component.lua index eed9b1510..bb74df1e4 100644 --- a/resources/prosody-plugins/mod_conference_duration_component.lua +++ b/resources/prosody-plugins/mod_conference_duration_component.lua @@ -28,7 +28,7 @@ function occupant_joined(event) if participant_count > 1 then if room.created_timestamp == nil then - room.created_timestamp = os.time(os.date("!*t")) * 1000; -- Lua provides UTC time in seconds, so convert to milliseconds + room.created_timestamp = os.time() * 1000; -- Lua provides UTC time in seconds, so convert to milliseconds end local body_json = {};