Skip to content

Commit

Permalink
fix: issues with clock overflow on midnight (#456)
Browse files Browse the repository at this point in the history
* fix: issues with clock overflow on midnight

* chore: version bump
  • Loading branch information
cpvalente authored Jul 17, 2023
1 parent 4a0d83d commit c73f7e2
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion apps/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ontime-ui",
"version": "2.0.2",
"version": "2.0.8",
"private": true,
"dependencies": {
"@chakra-ui/react": "^2.5.5",
Expand Down
2 changes: 1 addition & 1 deletion apps/electron/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions apps/server/src/services/TimerService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ontime",
"version": "2.0.2",
"version": "2.0.8",
"description": "Time keeping for live events",
"keywords": [
"lighdev",
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit c73f7e2

Please sign in to comment.