aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/tools/peertube-import-videos.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/tools/peertube-import-videos.ts')
-rw-r--r--server/tools/peertube-import-videos.ts1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/tools/peertube-import-videos.ts b/server/tools/peertube-import-videos.ts
index 3c41a6c0c..b3c3aee3e 100644
--- a/server/tools/peertube-import-videos.ts
+++ b/server/tools/peertube-import-videos.ts
@@ -373,6 +373,7 @@ function parseDate (dateAsStr: string): Date {
373 exitError(`Invalid date passed: ${dateAsStr}. Expected format: YYYY-MM-DD. See help for usage.`); 373 exitError(`Invalid date passed: ${dateAsStr}. Expected format: YYYY-MM-DD. See help for usage.`);
374 } 374 }
375 const date = new Date(dateAsStr); 375 const date = new Date(dateAsStr);
376 date.setHours(0, 0, 0);
376 if (isNaN(date.getTime())) { 377 if (isNaN(date.getTime())) {
377 exitError(`Invalid date passed: ${dateAsStr}. See help for usage.`); 378 exitError(`Invalid date passed: ${dateAsStr}. See help for usage.`);
378 } 379 }