Commit 8ee667149a01cd2beed93ee47e7e1ac8057d29ff
1 parent
a4f9ba1f
Exists in
master
DateTime when get from mysql database, return to loopback as date string (same as seen in database)
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/mysql.js
@@ -432,7 +432,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) { | @@ -432,7 +432,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) { | ||
432 | val = null; | 432 | val = null; |
433 | } else { | 433 | } else { |
434 | //val = new Date(val.toString().replace(/GMT.*$/, 'GMT')); | 434 | //val = new Date(val.toString().replace(/GMT.*$/, 'GMT')); |
435 | - val = val.toString(); // return as mysql date string | 435 | + //val = val.toString(); // Wed May 17 2017 15:48:00 GMT+0700 (+07) |
436 | } | 436 | } |
437 | break; | 437 | break; |
438 | case 'Boolean': | 438 | case 'Boolean': |