Add null value when date is not parseable

pull/58/head
MillenniumEarl 2020-12-07 21:06:34 +01:00
parent 7109c3079d
commit 0ce3d66512
1 changed files with 1 additions and 0 deletions

View File

@ -265,6 +265,7 @@ function parseMainPostText(text) {
parsedDict["LastUpdate"] = new Date(data.THREAD_UPDATED); parsedDict["LastUpdate"] = new Date(data.THREAD_UPDATED);
delete data.THREAD_UPDATED; delete data.THREAD_UPDATED;
} }
else parsedDict["LastUpdate"] = null;
// Parse the supported OS // Parse the supported OS
if (data.OS) { if (data.OS) {