mirror of
https://github.com/jiriks74/presence.nvim
synced 2024-11-23 20:37:50 +01:00
Use local epoch value for started timestamp
This commit is contained in:
parent
f3151560a7
commit
42f6c79eb0
@ -195,6 +195,9 @@ function Presence:update_for_buffer(buffer)
|
|||||||
name, asset_key, description = unpack(files[extension])
|
name, asset_key, description = unpack(files[extension])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- TODO: Update timestamp to be workspace-specific
|
||||||
|
local started_at = os.time()
|
||||||
|
|
||||||
local activity = {
|
local activity = {
|
||||||
state = string.format("Editing %s", filename),
|
state = string.format("Editing %s", filename),
|
||||||
assets = {
|
assets = {
|
||||||
@ -204,7 +207,7 @@ function Presence:update_for_buffer(buffer)
|
|||||||
small_text = description or name,
|
small_text = description or name,
|
||||||
},
|
},
|
||||||
timestamps = {
|
timestamps = {
|
||||||
start = os.time(os.date("!*t"))
|
start = started_at
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user