Improve timestamp formatting