Bug in prettyDate