schedule function zipline api

This could probably just be `get_datetime` and it would be as good a test for this bug (and a lot faster), right?