We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 87e0e87 commit 7f3972eCopy full SHA for 7f3972e
lib/models/VallisCycle.ts
@@ -35,7 +35,7 @@ interface CurrnetCycle {
35
* @returns current cycle state
36
*/
37
function getCurrentCycle(): CurrnetCycle {
38
- const sinceLast = (Date.now() - lStart.getMilliseconds()) % loopTime;
+ const sinceLast = (Date.now() - lStart.getTime()) % loopTime;
39
const toNextFull = loopTime - sinceLast;
40
let state = 'cold';
41
if (toNextFull > coldTime) {
0 commit comments