Fix formatting of time