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