Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/VincentTam/huginn.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Bridouz <justin.berthault@zaclys.net>2018-09-28 23:33:53 +0300
committerJustin Bridouz <justin.berthault@zaclys.net>2018-09-28 23:33:53 +0300
commit6091475e4efb8a864ef525370f48fa9e811f1124 (patch)
treefa5ec029ba49fb37cfe2e8ac2f9b9d7eb57c2492 /layouts
parentb1c941fa96e9297262e44a6d22f69496a0706e6e (diff)
Local date rss
Diffstat (limited to 'layouts')
-rw-r--r--layouts/rss.xml7
1 files changed, 5 insertions, 2 deletions
diff --git a/layouts/rss.xml b/layouts/rss.xml
index 38476b1..d89beb8 100644
--- a/layouts/rss.xml
+++ b/layouts/rss.xml
@@ -8,7 +8,9 @@
<managingEditor>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</managingEditor>{{end}}{{ with .Site.Author.email }}
<webMaster>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</webMaster>{{end}}{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
- <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
+ <lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006
+15:04:05 -0700".Date.Local | safeHTML
+}}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
@@ -16,7 +18,8 @@
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
- <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 +0100" | safeHTML }}</pubDate>
+ <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05
++0100".Date.Local | safeHTML }}</pubDate>
{{ with .Site.Author.email }}<author>{{.}}{{ with $.Site.Author.name }} ({{.}}){{end}}</author>{{end}}
<guid>{{ .Permalink }}</guid>
<description>{{ .Content | html }}</description>