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
getHour(0) // Result does not satisfy 24 hour format
getHour(11) // Result does not have proper formatting
getHour(10) // Result does not have proper formatting
getMinutes(10)
Expected behavior
getHour
For 00:00 the equivalent 12 hour format is 12:00
In the other case formatting is done wrong when hour is 10, 11
if(hour<12){// Problematic code line 58 dates-helper.jsreturn`0${hour}`}
getMinutes
Supposed to return string, when value is greater than 10
it returns Number
Bug Report : Test Dates Helper
Methods getHour, getMinutes returning incorrect values
To Reproduce
Expected behavior
getHour
For 00:00 the equivalent 12 hour format is 12:00
In the other case formatting is done wrong when hour is 10, 11
getMinutes
Supposed to return string, when value is greater than 10
it returns Number
Actual Behavior
@maximodeleon
The text was updated successfully, but these errors were encountered: