From 42f6c79eb0ecc3923f4af49a1b9dba7c5fc42701 Mon Sep 17 00:00:00 2001 From: Andrew Kwon Date: Sun, 3 Jan 2021 12:21:23 -0800 Subject: [PATCH] Use local epoch value for started timestamp --- lua/presence/init.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/presence/init.lua b/lua/presence/init.lua index 8cd38c2..1440c5b 100644 --- a/lua/presence/init.lua +++ b/lua/presence/init.lua @@ -195,6 +195,9 @@ function Presence:update_for_buffer(buffer) name, asset_key, description = unpack(files[extension]) end + -- TODO: Update timestamp to be workspace-specific + local started_at = os.time() + local activity = { state = string.format("Editing %s", filename), assets = { @@ -204,7 +207,7 @@ function Presence:update_for_buffer(buffer) small_text = description or name, }, timestamps = { - start = os.time(os.date("!*t")) + start = started_at }, }