Issuenow value is Date.now(), so it contains h, m, s, ms value in Date object. Hence, when users select Date only (without h, m, s, ms values), now value always greater than expected value (due to RTT from browser to server).
Feat
This PR introduce today value, which setHours(0,0,0,0).
Issue
now
value isDate.now()
, so it containsh, m, s, ms
value inDate
object. Hence, when users selectDate
only (withouth, m, s, ms
values),now
value always greater than expected value (due toRTT
from browser to server).Feat This PR introduce
today
value, whichsetHours(0,0,0,0)
.Test
greater
,min
,max