Fixed bug where the time was the date

This commit is contained in:
Ben
2018-11-14 22:37:52 +00:00
parent 13290ce222
commit 742f73f2bd
2 changed files with 13 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ function doStuff() {
});
}
const dateFormat = 'DD-MM-YY HH:MM:ss';
const dateFormat = 'DD-MM-YY HH:mm:ss';
function ConnectionRegained(timedown) {
let output = '[' + moment().format(dateFormat) + '] Connection regained after ' + timedown + 's of downtime';

View File

@@ -1,2 +1,13 @@
[13-11-18 07:11:34] Connection regained after 41s of downtime
NEW SESSIONNEW SESSION
NEW SESSION
[13-11-18 10:11:38] Lost Connection
[13-11-18 10:11:19] Connection regained after 41s of downtime
[13-11-18 20:11:10] Lost Connection
[13-11-18 20:11:02] Connection regained after 40s of downtime
[13-11-18 20:11:04] Lost Connection
[13-11-18 23:11:46] Lost Connection
[13-11-18 23:11:39] Connection regained after 40s of downtime
[14-11-18 07:11:12] Lost Connection
[14-11-18 07:11:52] Connection regained after 40s of downtime
[14-11-18 07:11:38] Lost Connection
[14-11-18 07:11:19] Connection regained after 42s of downtime