Work on using UserProps, fix up ISO timestamps, etc.
This commit is contained in:
@@ -2,10 +2,12 @@
|
||||
'use strict';
|
||||
|
||||
const sysDb = require('./database.js').dbs.system;
|
||||
const {
|
||||
getISOTimestampString
|
||||
} = require('./database.js');
|
||||
|
||||
// deps
|
||||
const _ = require('lodash');
|
||||
const moment = require('moment');
|
||||
|
||||
/*
|
||||
System Event Log & Stats
|
||||
@@ -149,7 +151,9 @@ class StatLog {
|
||||
}
|
||||
|
||||
// the time "now" in the ISO format we use and love :)
|
||||
get now() { return moment().format('YYYY-MM-DDTHH:mm:ss.SSSZ'); }
|
||||
get now() {
|
||||
return getISOTimestampString();
|
||||
}
|
||||
|
||||
appendSystemLogEntry(logName, logValue, keep, keepType, cb) {
|
||||
sysDb.run(
|
||||
|
||||
Reference in New Issue
Block a user