Fix current time retrieval on Windows

Closes #15.