Yooooomi / your_spotify

Self hosted Spotify tracking dashboard
GNU General Public License v3.0
2.77k stars 110 forks source link

Fix build from date #282

Closed dmouriss closed 10 months ago

dmouriss commented 11 months ago

fixes #143

dmouriss commented 11 months ago

Javascript doesn't always handle the set methods on Date objects as you would suspect, especially when it's the end of the month.

const date = new Date(); //On Aug 29 2023
date.setMonth(1);
//date is now  Mar 01 2023, since Feb 29 2023 does not exist
date.setMonth(1);
//date is now Feb 01 2023, since Feb 01 does exist.
maaaathis commented 10 months ago

Any update on this @Yooooomi ?

Yooooomi commented 10 months ago

Thanks a lot for the contribution, sorry I have not been able to reach out sooner.