Replaced toLocaleString with prettyDateTime.