Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

mktime() cannot represent dates before the Unix epoch on Windows. #68

Open
ericvw opened this issue Aug 31, 2015 · 0 comments
Open

mktime() cannot represent dates before the Unix epoch on Windows. #68

ericvw opened this issue Aug 31, 2015 · 0 comments
Labels

Comments

@ericvw
Copy link
Contributor

ericvw commented Aug 31, 2015

For background of this issue, please refer to bloomberg/blpapi-http#167.

In summary, the root cause is due to how mktime() behaves on Windows. The documentation for WIN32 mktime indicates that for struct tm* before January 1, 1970, that -1 is returned. Which, when -1 is passed into V8::Date::New() it results in one second behind the Unix epoch (i.e., '1969-12-31 23:59:59').

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant