console.log(dateFns.formatDistanceToNowStrict(new Date(2021,08,23),
{ unit:'day'})) // returns 87 days when it should be 58 days
console.log(dateFns.format(new Date(), 'dd.MM.yyyy')) //displays the correct current date
I don't know why it is displaying 87 days on my discord.js bot instead of 59 days(That's like a whole month away, don't think it's a timezone issue).
Any idea what could be wrong with it, I'm trying to get time between now and another date and I'm using Date Fns, The roundings don't work either