dresende / node-orm2

Object Relational Mapping
http://github.com/dresende/node-orm2
MIT License
3.07k stars 379 forks source link

Finding/matching with datetime does not work with datetime objects #663

Closed spurge closed 1 year ago

spurge commented 8 years ago

When creating/updating an datetime object in a date field is converted to the database datetime format. But when finding that entry with a datetime object won't return anything. You'll have to know how the database is storing the datetime value and then convert your datetime object. This is not the ORM-way of doing things, right? You should be able to create, update and find with the native datetime object and let the ORM-layer do the converting to specified database.