use platform specific datetime format for assertions
Merge pull request #398 from deeky666/fix-write-test

Use platform specific datetime format for assertions in WriteTest