* feat(time): add optional time format
* feat(time): show 12 hour time in stage timer
* feat(time): override locally
* feat(time): show timer in selected format
* feat(time): show 12 hour time in table header
* refactor: extract time formatting into utility
* refactor: migrate datetime library
* refactor(formatTime): centralise time formatting for viewers
* feature(12hour): version bump
This commit is contained in:
Carlos Valente
2022-08-30 19:04:02 +02:00
committed by GitHub
parent a8ce6f3fc1
commit 0651777055
37 changed files with 459 additions and 378 deletions
@@ -51,4 +51,4 @@ describe('getPreviousPlayable()', () => {
expect(id).toBe(null);
});
});
});
});
@@ -184,6 +184,7 @@ describe('test json parser with valid def', () => {
settings: {
app: 'ontime',
version: 1,
timeFormat: '24',
},
};
@@ -386,6 +387,7 @@ describe('test corrupt data', () => {
version: 1,
serverPort: 4001,
lock: null,
timeFormat: '24',
},
};
@@ -408,6 +410,7 @@ describe('test corrupt data', () => {
version: 1,
serverPort: 4001,
lock: null,
timeFormat: '24',
},
};
@@ -424,6 +427,7 @@ describe('test corrupt data', () => {
version: 1,
serverPort: 4001,
lock: null,
timeFormat: '24',
},
};
+1
View File
@@ -98,6 +98,7 @@ export const parseSettings_v1 = (data, enforce) => {
const settings = {
lock: s.lock || null,
pinCode: s.pinCode || null,
timeFormat: s.timeFormat || '24',
};
// write to db