Skip to content

Releases: nrkno/simple-date-parse

Correct day when adding/subtracting month/year

Choose a tag to compare

@eirikbacker eirikbacker released this 26 Feb 13:50
  • If a month contains 31 days, and you run +1month, javascript rounds up to the 1st of next month
  • This is not desired behaviour, as we really want to skip one month (both moment and dayjs agrees here)
  • simple-date-parse now adjusts day, to make sure 31 becomes 30 if needed to stay within boundaries

Revert setMilliseconds(0)

Choose a tag to compare

@eirikbacker eirikbacker released this 12 Jun 19:11
  • Actually made it harder to compare dates

setMilliseconds(0) for easier comparison

Choose a tag to compare

@eirikbacker eirikbacker released this 12 Jun 18:04
v1.0.1

Release patch 1.0.1