fix: issues with clock overflow on midnight (#456)

* fix: issues with clock overflow on midnight

* chore: version bump
This commit is contained in:
Carlos Valente
2023-07-17 13:53:50 +02:00
committed by GitHub
parent 4a0d83d970
commit c73f7e2207
6 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ontime-ui",
"version": "2.0.2",
"version": "2.0.8",
"private": true,
"dependencies": {
"@chakra-ui/react": "^2.5.5",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ontime",
"version": "2.0.2",
"version": "2.0.8",
"author": "Carlos Valente",
"description": "Time keeping for live events",
"repository": "https://github.com/cpvalente/ontime",
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "ontime-server",
"type": "module",
"main": "src/index.ts",
"version": "2.0.2",
"version": "2.0.8",
"exports": "./src/index.js",
"dependencies": {
"body-parser": "^1.20.0",
+4
View File
@@ -319,7 +319,11 @@ export class TimerService {
}
update(force = false) {
const previousTime = this.timer.clock;
this.timer.clock = clock.timeNow();
if (previousTime > this.timer.clock) {
force = true;
}
// we call integrations if we update timers
let shouldNotify = false;
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "ontime",
"version": "2.0.2",
"version": "2.0.8",
"description": "Time keeping for live events",
"keywords": [
"lighdev",
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "ontime-utils",
"type": "module",
"exports": "./index.ts",
"version": "2.0.2",
"version": "2.0.8",
"private": true,
"description": "shared logic for ontime",
"scripts": {