diff options
author | r <r@freesoftwareextremist.com> | 2021-11-22 06:40:15 +0000 |
---|---|---|
committer | r <r@freesoftwareextremist.com> | 2021-11-22 06:40:15 +0000 |
commit | 1c8c661abb4beda77edefe421fba1a52cf933956 (patch) | |
tree | 66487ac51307b10bd5259074d171590004c0a3b1 /templates | |
parent | b2a9e44db1a703fe0150c5aef7097020a9e1550d (diff) | |
download | bloat-1c8c661abb4beda77edefe421fba1a52cf933956.tar.gz bloat-1c8c661abb4beda77edefe421fba1a52cf933956.zip |
Fix time parsing for empty string
Diffstat (limited to 'templates')
-rw-r--r-- | templates/status.tmpl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/status.tmpl b/templates/status.tmpl index c79633f..dda1d79 100644 --- a/templates/status.tmpl +++ b/templates/status.tmpl @@ -227,8 +227,8 @@ <div class="status-action status-action-last"> <a class="status-time" href="{{if not .ShowReplies}}/thread/{{.ID}}{{end}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}> - <time datetime="{{FormatTimeRFC3339 .CreatedAt}}" title="{{FormatTimeRFC822 .CreatedAt}}"> - {{TimeSince .CreatedAt}} + <time datetime="{{FormatTimeRFC3339 .CreatedAt.Time}}" title="{{FormatTimeRFC822 .CreatedAt.Time}}"> + {{TimeSince .CreatedAt.Time}} </time> </a> </div> |