NetBird-UptimeKuma/shared.js
La Programmatrice Verde db9e99cc52 BUGFIX: time is correct
2025-08-20 17:59:57 +02:00

23 lines
351 B
JavaScript

const dayjs = require('dayjs')
module.exports = {
token: "",
setToken(token) {
this.token = token;
},
getToken() {
return this.token;
},
hosts: [],
setHosts(hosts) {
this.hosts = hosts;
},
getHosts() {
return this.hosts;
},
eventEmitter: {},
now() {
return dayjs().format('DD/MM/YYYY HH:mm:ss.sss')
}
};