From 19198f0dc42ed1b3cceec9000a3fec1ac2b7a66b Mon Sep 17 00:00:00 2001 From: icedream Date: Fri, 16 Oct 2015 10:11:38 +0200 Subject: [PATCH] Fixed news time calculation. --- services/ts3client.iced | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/services/ts3client.iced b/services/ts3client.iced index 2e615df..be922db 100644 --- a/services/ts3client.iced +++ b/services/ts3client.iced @@ -201,6 +201,7 @@ module.exports = class TS3ClientService extends services.Service identity.update() # Some settings to help the TS3Bot to do what it's supposed to do + now = new Date() await ts3settings.setMultiple [ [ "Application", "HotkeyMode", "2" ] [ "Chat", "MaxLines", "1" ] @@ -226,8 +227,8 @@ module.exports = class TS3ClientService extends services.Service [ "Misc", "LastShownNewsBrowserVersion", "4" ] [ "News", "NewsClosed", "1" ] [ "News", "Language", "en" ] - [ "News", "LastModified", (new Date()).toISOString() ] - [ "News", "NextCheck", (new Date() + 1000 * 60 * 60 * 24 * 360).toISOString() ] + [ "News", "LastModified", now.toISOString() ] + [ "News", "NextCheck", new Date(now.getTime() + 1000 * 60 * 60 * 24 * 365).toISOString() ] [ "Notifications", "SoundPack", "nosounds" ] [ "Plugins", "teamspeak_control_plugin", "false" ] [ "Plugins", "clientquery_plugin", "false" ]