This has always been a hot topic. Especially since Y2k.
How to test those monthly, yearly transitions.
Here is a blog that explains the tools available
https://adamj.eu/tech/2020/06/03/introducing-time-machine/
freezegun – https://github.com/spulec/freezegun