Fix for daily interval trigger and Cron serialization

You will find multiple test cases that explain the issues. I hope it will help