updated pretty date directive