79520097

Date: 2025-03-19 11:53:07
Score: 0.5
Natty:
Report link

Looks that time calculation of minuteOfDay isn't correct

time % 1 always = 0;

Probably should be:

 // const minuteOfDay = this.minutesInDay * (time % 1);
 const minuteOfDay = time % this.minutesInDay;

Code sandbox:

https://codesandbox.io/p/sandbox/yxmnd7

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: immament