Datetime related bug fixes

This commit is contained in:
Luis Fernando Molina committed 2020-08-21 08:50:01 +02:00
1 parent 2116dd35fe
commit a9a317545d
4 files changed
+37 -16

No files matched your search

+5
View File
@@ -45,6 +45,11 @@ global.PRECISE = function (floatNumber, precision) {
return this.parseFloat(floatNumber.toFixed(precision))
}
global.REMOVE_TIME = function (datetime) {
let date = new Date(datetime)
return new Date(date.getUTCFullYear() + "-" + (date.getUTCMonth() + 1) + "-" + date.getUTCDate() + " " + "00:00" + GMT_SECONDS);
}
process.on('uncaughtException', function (err) {
console.log('[ERROR] Task Server -> server -> uncaughtException -> err.message = ' + err.message)
console.log('[ERROR] Task Server -> server -> uncaughtException -> err.stack = ' + err.stack)