Fix error in cron.py occuring sometimes at 00:00.