cookpete / auto-changelog

Command line tool for generating a changelog from git tags and commit history
MIT License
1.26k stars 157 forks source link

`--starting-date` not working in 2024 #282

Closed IllusionVK closed 7 months ago

IllusionVK commented 8 months ago

We have been using Auto-chnagelog for the past 1-2 years and all has been working well, however in last few days we have seen issues with the change log being empty when we use our normal command which includes --starting-date.

If we remove --starting-date then the change log shows all changes in the past year or more.

This is an example of the command that is being run (and has worked fine for last 1-2 years) auto-changelog --commit-limit false --starting-date 2024/01/07 --sort-commits date-desc -t conventional -o ReleaseNotes.md

and it is now returning a change log with only

# Change Log
# 

In testing we have found that if we run the command from above but change the date to be 2023 eg 2023/01/07 then it will show the commits only since 1st January of 2024 (thats not a typo... we set 2023 and it shows us commits from 2024)

@cookpete do you have or anyone else have any the suggestions why this may happen ? Thanks for any ideas on this strange issue!

IllusionVK commented 7 months ago

An Update:

So the strange thing here is that the 2016 server is still using dates with slashes and it works fine! So there must be something differnt with a library that interprets the date on the Windows 2019 server. We have checked all of our library versions and both servers have the same, so its a mystery what actually causes the issue. Perhaps how regex behaves / how the date is interpreted by the code when run on the 2019 server. To recap: