Fixing game history finish time showing as an incorrect date

This commit is contained in:
Christian 'ketura' McCarty
2023-03-20 00:36:09 -05:00
parent 441e8d883e
commit 829c457081
2 changed files with 2 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ public class GameHistoryRequestHandler extends LotroServerRequestHandler impleme
gameHistory.setAttribute("count", String.valueOf(recordCount));
gameHistory.setAttribute("playerId", resourceOwner.getName());
var formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd");
var formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm");
for (DBDefs.GameHistory game : playerGameHistory) {
Element historyEntry = doc.createElement("historyEntry");

View File

@@ -35,7 +35,7 @@ var GameHistoryUI = Class.extend({
var loser = historyEntry.getAttribute("loser");
var winReason = historyEntry.getAttribute("winReason");
var loseReason = historyEntry.getAttribute("loseReason");
var endTime = formatDate(new Date(parseInt(historyEntry.getAttribute("endTime"))));
var endTime = historyEntry.getAttribute("endTime"); //formatDate(new Date(parseInt(historyEntry.getAttribute("endTime"))));
var gameRecordingId = historyEntry.getAttribute("gameRecordingId");
var row = $("<tr></tr>");