Fix bug for DEVELOPER-275 where dates can't be parsed