Changed time formatting to work on windows