NXIO-158: make cron work - fix date diff computation