show if new maps not parsed & new map icon for unparsed matches

This commit is contained in:
2021-11-14 13:43:06 +01:00
parent 3ce6b865c8
commit 9c96aeae4f
3 changed files with 45 additions and 4 deletions

View File

@@ -52,3 +52,9 @@ export const FormatVacDate = (date, match) => {
return ''
}
}
export const MatchNotParsedTime = (match) => {
const matchDate = DateTime.fromSeconds(match || 0)
return matchDate.diffNow().as('hours') >= -2;
}