mirror of
https://github.com/ershisan99/www.git
synced 2025-12-17 05:19:23 +00:00
fix game duration
This commit is contained in:
@@ -852,9 +852,9 @@ export default function LogParser() {
|
|||||||
lastEventTime ?? lastProcessedTimestamp ?? currentGame.startDate // Fallback chain
|
lastEventTime ?? lastProcessedTimestamp ?? currentGame.startDate // Fallback chain
|
||||||
}
|
}
|
||||||
currentGame.durationSeconds = currentGame.endDate
|
currentGame.durationSeconds = currentGame.endDate
|
||||||
? (currentGame.endDate instanceof Date
|
? ((currentGame.endDate instanceof Date
|
||||||
? currentGame.endDate.getTime()
|
? currentGame.endDate.getTime()
|
||||||
: new Date(currentGame.endDate).getTime() -
|
: new Date(currentGame.endDate).getTime()) -
|
||||||
currentGame.startDate.getTime()) / 1000
|
currentGame.startDate.getTime()) / 1000
|
||||||
: null
|
: null
|
||||||
games.push(currentGame)
|
games.push(currentGame)
|
||||||
|
|||||||
Reference in New Issue
Block a user