From b96a9c259e3f119a1c0dd607186a46b88fcee971 Mon Sep 17 00:00:00 2001 From: Skillet Date: Thu, 16 Feb 2023 02:42:51 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index 8eec195..96fad31 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -101,8 +101,10 @@ export default class DBLogPlayerTime extends DBLog { console.log('switching to Live'); this.seeding = false; let curDateTime = new Date(); + let timeNow = curDateTime.getFullYear() + '-' + (curDateTime.getMonth() + 1) + '-' + curDateTime.getDate()+' '+curDateTime.getHours()+':'+curDateTime.getMinutes()+':'+curDateTime.getSeconds(); + console.log(timeNow); await this.models.PlayerTime.update( - { seedTime: curDateTime.getFullYear() + '-' + (curDateTime.getMonth() + 1) + '-' + curDateTime.getDate()+'T'+curDateTime.getHours()+':'+curDateTime.getMinutes()+':'+curDateTime.getSeconds()+'Z'}, + { seedTime: timeNow }, { where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } } ); }else if(this.seeding == false && (info.a2sPlayerCount) < 1){