diff --git a/database/scores/games.js b/database/scores/games.js index 8d49aeb..1560768 100644 --- a/database/scores/games.js +++ b/database/scores/games.js @@ -51,7 +51,7 @@ async function retrieveByTeamDivisionAndSeason(teamID, divisionID, seasonID) { teamScore = opponentIsTeam2 ? row[6] : row[7]; opponentScore = opponentIsTeam2 ? row[7] : row[6]; - gamesList.push(new Game(row[0], row[3], teamID, opponentID, teamScore, opponentScore)); + gamesList.push(new Game(row[0], moment(row[3]), teamID, opponentID, teamScore, opponentScore)); }); return gamesList; }