From 16e9116308ec30a6a2df462c2c9f47d3f4a70746 Mon Sep 17 00:00:00 2001 From: litruv Date: Tue, 11 Jun 2019 09:51:15 +1000 Subject: [PATCH] offset with libs ? --- plugins/workweek.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/workweek.js b/plugins/workweek.js index 7b0cab2..998c98d 100644 --- a/plugins/workweek.js +++ b/plugins/workweek.js @@ -5,6 +5,7 @@ module.exports = { name: "Nine to Five", init: (dclient) => { client = dclient + moment().utcOffset(0) setInterval(on15Update, 900000) function on15Update() { var currentUpdate = Math.round((moment().day() * 24 * 60 + (moment().hour() * 60) + moment().minute()) / 15) @@ -15,6 +16,6 @@ module.exports = { } on15Update() - console.log(moment().format()) + } } \ No newline at end of file