fix datetime test
Merge pull request #2592 from IgorStepanov/datetime-test-fix

[trivial] fix datetime test