Issue 1938 time machine scheduler takes any cron expression

Fixed the issue and pushed code for review, please check it.