Fix handling of endTime defaults.