Defauling --actors-update to 1900-01-01

This commit is contained in:
DebaucheryLibrarian
2020-08-12 21:00:50 +02:00
parent 1d3b9a19bc
commit d14034d38b
2 changed files with 5 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ const yargs = require('yargs');
const moment = require('moment');
function interpretAfter(after) {
if (!after) {
return new Date(0, 0, 0);
}
if (/\d{2,4}-\d{2}-\d{2,4}/.test(after)) {
// using date
return moment