You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was using new Date().getMinutes() to set the minutes in the disabledTimeRange object. So when the minutes returned were from 0 to 9 I would get the error "Could not parse time for disabled time range".
I think it caused by the TIME_PARSE_24 regex.
Just in case anyone is facing this error:
I was using
new Date().getMinutes()
to set the minutes in thedisabledTimeRange
object. So when the minutes returned were from 0 to 9 I would get the error "Could not parse time for disabled time range".I think it caused by the TIME_PARSE_24 regex.
react-timekeeper/src/helpers/time.ts
Lines 4 to 5 in 19e5569
I fixed it by padding the minutes by 0 if it's value is less than 10.
The text was updated successfully, but these errors were encountered: