diff --git a/src/templates/src/podcast.xml b/src/templates/src/podcast.xml
index 45e5cba0..3bcf8617 100644
--- a/src/templates/src/podcast.xml
+++ b/src/templates/src/podcast.xml
@@ -23,7 +23,7 @@
{{ .EpisodeNumber }}
{{ .EpisodeNumber }}
- {{ .PublicationDate }}
+ {{ rfc1123 .PublicationDate }}
{{ .Duration }}
{{ .Url }}
diff --git a/src/templates/templates.go b/src/templates/templates.go
index 7de7face..9e6f1e43 100644
--- a/src/templates/templates.go
+++ b/src/templates/templates.go
@@ -117,6 +117,9 @@ var HMNTemplateFuncs = template.FuncMap{
"rfc3339": func(t time.Time) string {
return t.UTC().Format(time.RFC3339)
},
+ "rfc1123": func(t time.Time) string {
+ return t.UTC().Format(time.RFC1123)
+ },
"alpha": func(alpha float64, color noire.Color) noire.Color {
color.Alpha = alpha
return color