From 5514b5996d7a93833409fcc90ab07483ab72ae00 Mon Sep 17 00:00:00 2001 From: chris062689 Date: Wed, 19 Jul 2017 22:05:02 -0400 Subject: [PATCH] Updated time the command would run to account for UTC. --- server.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.js b/server.js index 8623a16..8cdd637 100644 --- a/server.js +++ b/server.js @@ -39,7 +39,8 @@ client.on("guildMemberRemove", (member) => { }); // Output the stats for app.stats every 24 hours. -schedule.scheduleJob({ hour: 23, minute: 59 }, function(){ +// Server is in UTC mode, 11:30 EST would be 03:30 UTC. +schedule.scheduleJob({ hour: 3, minute: 30 }, function(){ logger.info(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`); app.logChannel.sendMessage(`Here are today's stats for ${(new Date()).toLocaleDateString()}! ${app.stats.joins} users have joined, ${app.stats.leaves} users have left, ${app.stats.warnings} warnings have been issued.`);