mirror of
https://github.com/Team254/cheesy-arena-lite.git
synced 2026-03-09 21:56:50 -04:00
Fixed match times to display as local.
This commit is contained in:
@@ -510,7 +510,7 @@ func buildMatchPlayList(matchType string) (MatchPlayList, error) {
|
||||
for i, match := range matches {
|
||||
matchPlayList[i].Id = match.Id
|
||||
matchPlayList[i].DisplayName = prefix + match.DisplayName
|
||||
matchPlayList[i].Time = match.Time.Format("3:04 PM")
|
||||
matchPlayList[i].Time = match.Time.Local().Format("3:04 PM")
|
||||
matchPlayList[i].Status = match.Status
|
||||
switch match.Winner {
|
||||
case "R":
|
||||
|
||||
@@ -162,7 +162,7 @@ func buildMatchReviewList(matchType string) ([]MatchReviewListItem, error) {
|
||||
for i, match := range matches {
|
||||
matchReviewList[i].Id = match.Id
|
||||
matchReviewList[i].DisplayName = prefix + match.DisplayName
|
||||
matchReviewList[i].Time = match.Time.Format("Mon 1/02 03:04 PM")
|
||||
matchReviewList[i].Time = match.Time.Local().Format("Mon 1/02 03:04 PM")
|
||||
matchReviewList[i].RedTeams = []int{match.Red1, match.Red2, match.Red3}
|
||||
matchReviewList[i].BlueTeams = []int{match.Blue1, match.Blue2, match.Blue3}
|
||||
matchResult, err := db.GetMatchResultForMatch(match.Id)
|
||||
|
||||
Reference in New Issue
Block a user