Fix: Bad date ranges

Conflicts:
	scripts/invoices/rebuild_merge_pdf.php
Merge branch '3.4' of https://github.com/Dolibarr/dolibarr.git into 3.4
Merge branch '3.4' into 3.4_agefodd