Skip to content
Snippets Groups Projects
Commit eb0ce67f authored by Ophestra's avatar Ophestra
Browse files

format date in a language-agnostic manner since idk any turkish and go stdlib...

format date in a language-agnostic manner since idk any turkish and go stdlib probably doesn't either

format in prize xattr
parent b390db27
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,7 @@
class="live-btn">Canlı Yayın!</a>
{{end}}
<h5>{{index .Attributes "title"}}</h5>
<span>{{index .Attributes "prize"}}</span>
<span>{{.StartTimeFormatted}}</span>
</div>
</li>
......
......@@ -154,7 +154,7 @@ func populateTournaments(ts []*tournament) {
}
func populateTournament(t *tournament) {
t.StartTimeFormatted = t.StartTime.Format("Mon, 02 Jan 2006")
t.StartTimeFormatted = t.StartTime.Format("02/01/2006")
t.TimePresent = time.Now().After(t.StartTime)
t.EnrollmentOverdue = time.Now().After(t.Deadline)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment