tests: datetime: Fix failure on Windows
authorSeungha Yang <seungha.yang@navercorp.com>
Mon, 17 Dec 2018 14:29:16 +0000 (23:29 +0900)
committerSeungha Yang <seungha.yang@navercorp.com>
Mon, 17 Dec 2018 14:37:59 +0000 (23:37 +0900)
commit2c0951774be922abc533709d25c50caf52db517c
tree0b64f0f640f2d69b2a3b6a589efa07653b217569
parent1bca404191476f34609942527c4b0fccccc135c5
tests: datetime: Fix failure on Windows

The documentation for WIN32 mktime indicates that for struct tm*
before January 1, 1970, that -1 is returned, and since mktime is timezone
dependent, the struct tm corresponding to 1:00, Jan. 1, 1970 might be failed.

See also
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/mktime-mktime32-mktime64
tests/check/gst/gstdatetime.c