mirror of
https://github.com/litruv/DAdmin.git
synced 2026-07-24 10:46:14 +10:00
offset with libs ?
This commit is contained in:
@@ -5,6 +5,7 @@ module.exports = {
|
||||
name: "Nine to Five",
|
||||
init: (dclient) => {
|
||||
client = dclient
|
||||
moment().utcOffset(0)
|
||||
setInterval(on15Update, 900000)
|
||||
function on15Update() {
|
||||
var currentUpdate = Math.round((moment().day() * 24 * 60 + (moment().hour() * 60) + moment().minute()) / 15)
|
||||
@@ -15,6 +16,6 @@ module.exports = {
|
||||
}
|
||||
on15Update()
|
||||
|
||||
console.log(moment().format())
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user