Fix bug in date prettifier