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
|
||||
}
|
||||
currentGame.durationSeconds = currentGame.endDate
|
||||
? (currentGame.endDate instanceof Date
|
||||
? ((currentGame.endDate instanceof Date
|
||||
? currentGame.endDate.getTime()
|
||||
: new Date(currentGame.endDate).getTime() -
|
||||
: new Date(currentGame.endDate).getTime()) -
|
||||
currentGame.startDate.getTime()) / 1000
|
||||
: null
|
||||
games.push(currentGame)
|
||||
|
||||
Reference in New Issue
Block a user