mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-24 00:13:52 -06:00
better UTC loggin: - if timezone is negative and + if positive
This commit is contained in:
parent
87a427d963
commit
a09f6ed882
@ -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: ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user