Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
joakbjerk committed Jan 5, 2024
1 parent 01f9228 commit d9fcf8b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const isDisabledCalc = (date, minDate, maxDate) => {
export { isDisabledCalc as isDisabled }

// useful for comparing dates that strictly speaking are the same, but differs in time (hours, minutes, seconds)
// returns a new Date object to prevent mutation
const resetHours = (date) => {
const dateCopy = new Date(date)
return dateCopy.setHours(0, 0, 0, 0)
Expand Down

0 comments on commit d9fcf8b

Please sign in to comment.