Skip to content

Commit

Permalink
Conference timer should start counting at 0
Browse files Browse the repository at this point in the history
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 jitsi#5595
  • Loading branch information
rubenk authored and damencho committed Apr 23, 2020
1 parent 027c6dd commit 57bb2ea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {};
Expand Down

0 comments on commit 57bb2ea

Please sign in to comment.