Commit 992a6b73e626567a0cdeefe4f27209742a53bc3a

Authored by Arsisakarn Srilatanart
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
@@ -433,7 +433,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) { @@ -433,7 +433,7 @@ MySQL.prototype.fromColumnValue = function(prop, val) {
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(); // Wed May 17 2017 15:48:00 GMT+0700 (+07) 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 break; 438 break;
439 case 'Boolean': 439 case 'Boolean':