We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When retrieving a TIMESTAMP field from a Firebird database, node returns a bad value. (Wrong days and hours.)
function SQLVarTimeStamp() {} SQLVarTimeStamp.prototype.decode = function(data, lowerV13) { var date = data.readInt(); var time = data.readUInt(); if (!lowerV13 || !data.readInt()) { var d = new Date(0); // d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10) + d.getTimezoneOffset() * MsPerMinute); d.setMilliseconds((date - DateOffset) * TimeCoeff + Math.floor(time / 10) + 0 * MsPerMinute); // fix Timestamp Offset return d; } return null; };
I managed to solve by changing this code.
#3
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When retrieving a TIMESTAMP field from a Firebird database, node returns a bad value. (Wrong days and hours.)
I managed to solve by changing this code.
#3
The text was updated successfully, but these errors were encountered: