Fixed init cron not waiting for database
Fix time conversion