Commit 992a6b73e626567a0cdeefe4f27209742a53bc3a
1 parent
12dec05a
Exists in
master
Changed return date as ISO date (original) but correct timezone
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
lib/mysql.js
| ... | ... | @@ -433,7 +433,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) { |
| 433 | 433 | } else { |
| 434 | 434 | //val = new Date(val.toString().replace(/GMT.*$/, 'GMT')); |
| 435 | 435 | //val = val.toString(); // Wed May 17 2017 15:48:00 GMT+0700 (+07) |
| 436 | - val = moment(val).format('YYYY-MM-DD HH:mm:ss'); | |
| 436 | + val = new Date(val.toString()); | |
| 437 | 437 | } |
| 438 | 438 | break; |
| 439 | 439 | case 'Boolean': | ... | ... |