Skip to content

Commit

Permalink
fix: try and sync uptime variable #3032
Browse files Browse the repository at this point in the history
  • Loading branch information
Julusian committed Sep 17, 2024
1 parent 1080eea commit fe67f12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions companion/lib/Internal/Time.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default class Time {
*/
#internalModule

#startTime = Date.now()
#startTime = Math.floor(Date.now() / 1000)

/**
*
Expand Down Expand Up @@ -122,7 +122,7 @@ export default class Time {
const hhmmss12 = `${hhmm12}:${ss}`
const ts = Math.floor(now.getTime() / 1000)

const uptime = Math.floor((now.getTime() - this.#startTime) / 1000)
const uptime = ts - this.#startTime

this.#internalModule.setVariables({
date_iso: `${year}-${month}-${day}`,
Expand Down

0 comments on commit fe67f12

Please sign in to comment.