From 4589e2271315c17c0e943393ff1d9dc176532ec7 Mon Sep 17 00:00:00 2001 From: Daniel Odendahl Jr Date: Sun, 18 Mar 2018 14:44:04 +0000 Subject: [PATCH] Fix --- util/Util.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/util/Util.js b/util/Util.js index bb9d0b42..07c5cd8e 100644 --- a/util/Util.js +++ b/util/Util.js @@ -72,7 +72,7 @@ class Util { return body.data.images[Math.floor(Math.random() * body.data.images.length)].link; } - today(timeZone) { + static today(timeZone) { const now = new Date(); if (timeZone) now.setUTCHours(now.getUTCHours() + timeZone); now.setHours(0); @@ -82,7 +82,7 @@ class Util { return now; } - tomorrow(timeZone) { + static tomorrow(timeZone) { const today = Util.today(timeZone); today.setDate(today.getDate() + 1); return today;