Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixing issue where conversion of result fields to JS Date object coul…

…d be truncated on some systems
  • Loading branch information...
commit e28a9670f0d6a3f38e0a8bf52623494894310e13 1 parent 3d2d08b
@mariano authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  query.cc
View
2  query.cc
@@ -1280,7 +1280,7 @@ v8::Local<v8::Object> node_db::Query::row(node_db::Result* result, row_t* curren
timeinfo.tm_min = min;
timeinfo.tm_sec = sec;
- value = v8::Date::New(static_cast<uint64_t>((mktime(&timeinfo) + Query::gmtDelta) * 1000));
+ value = v8::Date::New(static_cast<double>(mktime(&timeinfo) + Query::gmtDelta) * 1000);
} catch(const node_db::Exception&) {
value = v8::String::New(currentValue, currentLength);
}
Please sign in to comment.
Something went wrong with that request. Please try again.