浏览代码

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
j8
Ruben Kerkhof 5 年前
父节点
当前提交
57bb2ead36
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      resources/prosody-plugins/mod_conference_duration_component.lua

+ 1
- 1
resources/prosody-plugins/mod_conference_duration_component.lua 查看文件

28
     if participant_count > 1 then
28
     if participant_count > 1 then
29
 
29
 
30
         if room.created_timestamp == nil then
30
         if room.created_timestamp == nil then
31
-            room.created_timestamp = os.time(os.date("!*t")) * 1000; -- Lua provides UTC time in seconds, so convert to milliseconds
31
+            room.created_timestamp = os.time() * 1000; -- Lua provides UTC time in seconds, so convert to milliseconds
32
         end
32
         end
33
 
33
 
34
         local body_json = {};
34
         local body_json = {};

正在加载...
取消
保存