Fix pretty date generation