From 0ce3d66512436ee297882bc92b0a4ff8501f2724 Mon Sep 17 00:00:00 2001 From: MillenniumEarl Date: Mon, 7 Dec 2020 21:06:34 +0100 Subject: [PATCH] Add null value when date is not parseable --- app/scripts/scraper.js | 1 + 1 file changed, 1 insertion(+) diff --git a/app/scripts/scraper.js b/app/scripts/scraper.js index 35481dc..fb5845a 100644 --- a/app/scripts/scraper.js +++ b/app/scripts/scraper.js @@ -265,6 +265,7 @@ function parseMainPostText(text) { parsedDict["LastUpdate"] = new Date(data.THREAD_UPDATED); delete data.THREAD_UPDATED; } + else parsedDict["LastUpdate"] = null; // Parse the supported OS if (data.OS) {