fix prettydate