diff --git a/main.go b/main.go index c65893b..8cf2d22 100644 --- a/main.go +++ b/main.go @@ -376,6 +376,11 @@ func main() { return } + loc, _ := time.LoadLocation("Europe/Moscow") + for _, episode := range episodes { + episode.CreatedAt = episode.CreatedAt.In(loc) + } + tmpl.ExecuteTemplate(w, "podcast.html", struct { Podcast *Podcast Episodes []*Episode diff --git a/views/podcast.html b/views/podcast.html index a853b67..a9d9d37 100644 --- a/views/podcast.html +++ b/views/podcast.html @@ -43,6 +43,12 @@ padding: 10px; border-top: 1px solid; } + + .episode { + display: flex; + justify-content: space-between; + align-items: center; + }
@@ -58,8 +64,9 @@