prettify and fix datetime