Fixing date problem with schedule