Fix the mongoose date field