Patches the time.mktime issues with scheduler
Fixes tests