Scheduler: add explicit datetime support, fix tests.