Fix time handling

Tests were failing due to the bad_time_handling check.  Additionally the `jenkins.sh` wasn't running this check, hence it's not been noticed before now.