better UTC loggin: - if timezone is negative and + if positive

This commit is contained in:
Davide Fantino 2022-10-04 00:58:11 +02:00
parent 87a427d963
commit a09f6ed882

View File

@ -208,7 +208,7 @@ export default class MapVote extends DiscordBasePlugin {
timeNow = new Date(0, 0, 0, timeNow.getHours(), timeNow.getMinutes()) timeNow = new Date(0, 0, 0, timeNow.getHours(), timeNow.getMinutes())
// console.log(timeNow, timeNow.toTimeString(), timeNow.toLocaleTimeString()) // console.log(timeNow, timeNow.toTimeString(), timeNow.toLocaleTimeString())
this.verbose(1, `Current time (UTC+${utcDelay}) ${timeNow.toLocaleTimeString('en-GB').split(':').splice(0, 2).join(':')}`) this.verbose(1, `Current time (UTC${(utcDelay >= 0 ? '+' : '') + utcDelay}) ${timeNow.toLocaleTimeString('en-GB').split(':').splice(0, 2).join(':')} `)
const activeTimeframes = orOpt.timeFrames.filter(tfFilter); const activeTimeframes = orOpt.timeFrames.filter(tfFilter);
let logTimeframe = "Active Time Frames: "; let logTimeframe = "Active Time Frames: ";