Fixes time formatting