I'm using node-orm2 version 2.1.24 with MariaDB 10.0.10 and node 0.10.26 on Windows 8.1 64-bit. I'm using the MySQL driver with node-mysql at 2.7.0, since MariaDB is compatible with MySQL. I've created a model that includes a date property with time: true specified:
var Media = db.define('media', {
....
last_updated: {type: 'date', time: true}
....
});
(There are more properties where I put the ellipsis, but I don't think they're relevant.)
I fetch all rows using Media.all. When I access the last_updated fields of the returned rows, it's a string like:
0000-00-00 00:00:00
I'm using node-orm2 version 2.1.24 with MariaDB 10.0.10 and node 0.10.26 on Windows 8.1 64-bit. I'm using the MySQL driver with node-mysql at 2.7.0, since MariaDB is compatible with MySQL. I've created a model that includes a date property with
time: true
specified:(There are more properties where I put the ellipsis, but I don't think they're relevant.)
I fetch all rows using Media.all. When I access the last_updated fields of the returned rows, it's a string like:
0000-00-00 00:00:00
For now I'm using a custom type: