Commit 89452253e6d97bcc78dfe2d894b6ec7eed45381b
1 parent
2bd0e0e5
Exists in
master
-แก้เช็คเวลา 0 นาฬิกา
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
lib/mysql.js
... | ... | @@ -321,9 +321,9 @@ MySQL.prototype.updateOrCreate = function(model, data, options, cb) { |
321 | 321 | // arsis 2017-03-21 add tzOffset |
322 | 322 | function dateToMysql(val, tzOffset) { |
323 | 323 | var tz = tzOffset || 0; |
324 | - if (val.getUTCHours() || val.getUTCMinutes() || val.getUTCSeconds()) { | |
324 | + // if (val.getUTCHours() || val.getUTCMinutes() || val.getUTCSeconds()) { | |
325 | 325 | val.setUTCHours(val.getUTCHours() + tz); |
326 | - } | |
326 | + // } | |
327 | 327 | return val.getUTCFullYear() + '-' + |
328 | 328 | fillZeros(val.getUTCMonth() + 1) + '-' + |
329 | 329 | fillZeros(val.getUTCDate()) + ' ' + | ... | ... |