Merge branch 'master' of ssh://numinibsd/git/base/enigma-bbs
This commit is contained in:
commit
2497f63f34
|
@ -142,6 +142,8 @@ function initialize(cb) {
|
||||||
|
|
||||||
process.on('SIGINT', shutdownSystem);
|
process.on('SIGINT', shutdownSystem);
|
||||||
|
|
||||||
|
require('later').date.localTime(); // use local times for later.js/scheduling
|
||||||
|
|
||||||
return callback(null);
|
return callback(null);
|
||||||
},
|
},
|
||||||
function initDatabases(callback) {
|
function initDatabases(callback) {
|
||||||
|
|
|
@ -11,6 +11,7 @@ const later = require('later');
|
||||||
const path = require('path');
|
const path = require('path');
|
||||||
const pty = require('ptyw.js');
|
const pty = require('ptyw.js');
|
||||||
const gaze = require('gaze');
|
const gaze = require('gaze');
|
||||||
|
const moment = require('moment');
|
||||||
|
|
||||||
exports.getModule = EventSchedulerModule;
|
exports.getModule = EventSchedulerModule;
|
||||||
exports.EventSchedulerModule = EventSchedulerModule; // allow for loadAndStart
|
exports.EventSchedulerModule = EventSchedulerModule; // allow for loadAndStart
|
||||||
|
@ -214,6 +215,7 @@ EventSchedulerModule.prototype.startup = function(cb) {
|
||||||
eventName : schedEvent.name,
|
eventName : schedEvent.name,
|
||||||
schedule : this.moduleConfig.events[schedEvent.name].schedule,
|
schedule : this.moduleConfig.events[schedEvent.name].schedule,
|
||||||
action : schedEvent.action,
|
action : schedEvent.action,
|
||||||
|
next : moment(later.schedule(schedEvent.schedule.sched).next(1)).format('ddd, MMM Do, YYYY @ h:m:ss a')
|
||||||
},
|
},
|
||||||
'Scheduled event loaded'
|
'Scheduled event loaded'
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue