Fix formatting time on windows