orientechnologies / orientjs

The official fast, lightweight node.js client for OrientDB
http://orientdb.com
Other
326 stars 68 forks source link

DATETIME : Wrong timezone conversion #359

Closed petervavro closed 5 years ago

petervavro commented 5 years ago

Expected behavior

Database timezone : "GMT-05:00" The value in DATETIME field is 2019-02-01T05:00:00.000Z. ".all()" supposed to response "Fri Feb 01 2019 00:00:00 GMT -0500 (-05)" in date object.

Actual behavior

I am getting "Fri Feb 01 2019 05:00:00 GMT -0500 (-05)".

Is this a BUG please ?

Thank you.

petervavro commented 5 years ago

Solved. The issue was caused by the confusion about timezone config. I am sorry and thanks !