Fixed match times to display as local.

This commit is contained in:
Patrick Fairbank
2014-08-21 00:12:49 -07:00
parent 447e837b17
commit 9dab7f3980
2 changed files with 2 additions and 2 deletions

View File

@@ -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":

View File

@@ -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)