Fix time adjustment for test

Fix #8.
Merge pull request #7 from slawekjaranowski/master

Fix build for windows
Merge pull request #9 from rinrinne/fix-time

Fix time adjustment for test