mirror of
https://github.com/AsgardEternal/squad-js-map-vote.git
synced 2025-01-23 18:23:52 -06:00
fixed timerange
This commit is contained in:
parent
d62b6db612
commit
8c66119aa5
@ -205,7 +205,7 @@ export default class MapVote extends DiscordBasePlugin {
|
||||
const midnight = new Date(0, 0, 0, 0, 0)
|
||||
const tfEnd = new Date(0, 0, 0, ...tfEndSplit)
|
||||
const tfEnd2 = new Date(0, 0, 0, ...tfEndSplit)
|
||||
return (tfStart <= timeNow && timeNow < tfEnd) || (tfStart > tfEnd && ((tfStart <= timeNow && timeNow < midnight) || (midnight <= timeNow && timeNow < tfEnd))
|
||||
return (tfStart <= timeNow && timeNow < tfEnd) || (tfStart > tfEnd && ((tfStart <= timeNow && timeNow < midnight) || (midnight <= timeNow && timeNow < tfEnd)))
|
||||
}
|
||||
}
|
||||
async checkUpdates(callback) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user