themes/sourcehut: use formatdate template func

This commit is contained in:
Simon Ser 2019-12-17 11:33:29 +01:00
parent 9404be1a32
commit b8407569f0
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -49,7 +49,7 @@
href="/message/{{$.Mailbox.Name | pathescape}}/{{.Uid}}?part={{.TextPartName}}"
>
<span class="text-muted date">
{{ .Envelope.Date.Format "Mon Jan 02 15:04" }}
{{ .Envelope.Date | formatdate }}
</span>
<span class="text-normal from">
{{ range .Envelope.From }}
@ -75,7 +75,7 @@
{{end}}
</p>
{{else}}
<p>Mailbox is empty.</p>
<p>No message.</p>
{{end}}
</div>
</div>