bloomberg/blpapi-node

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

Opened this issue · 0 comments

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').