From 25cb18afcb5eb8b7f66903fa68ed5e624da8e32d Mon Sep 17 00:00:00 2001 From: Skillet Date: Thu, 16 Feb 2023 19:11:23 -0500 Subject: [PATCH] Update db-log-addOn.js --- squadjsPlugins/db-log-addOn.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/squadjsPlugins/db-log-addOn.js b/squadjsPlugins/db-log-addOn.js index db5bf3e..68bb84c 100644 --- a/squadjsPlugins/db-log-addOn.js +++ b/squadjsPlugins/db-log-addOn.js @@ -102,11 +102,8 @@ export default class DBLogPlayerTime extends DBLog { if((this.seeding == true) && (info.a2sPlayerCount >= 1)){ 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: timeNow }, + { seedTime: new Date() }, { where: { seedTime: null, joinedSeeding: 1, leaveTime: null, server: this.options.overrideServerID || this.server.id } } ); }else if(this.seeding == false && (info.a2sPlayerCount) < 1){