summaryrefslogtreecommitdiff
path: root/web/template
diff options
context:
space:
mode:
authorLibravatar CDN <git@cdn0x12.dev>2025-03-01 18:41:32 +0800
committerLibravatar GitHub <noreply@github.com>2025-03-01 11:41:32 +0100
commitb4bb97225e7dd8906484b09b4f736395e779eead (patch)
tree5dfefb3ffa286486ca60c4ae9c2abbb9178071af /web/template
parent[feature] Implement CSV import for mutes (#3696) (diff)
downloadgotosocial-b4bb97225e7dd8906484b09b4f736395e779eead.tar.xz
[feature/frontend] use localized time string in status & poll info page (#3821)
Diffstat (limited to 'web/template')
-rw-r--r--web/template/status_info.tmpl4
-rw-r--r--web/template/status_poll.tmpl4
2 files changed, 4 insertions, 4 deletions
diff --git a/web/template/status_info.tmpl b/web/template/status_info.tmpl
index a66ca05c4..7ac81a78a 100644
--- a/web/template/status_info.tmpl
+++ b/web/template/status_info.tmpl
@@ -23,14 +23,14 @@
<div class="stats-item published-at text-cutoff">
<dt class="sr-only">Published</dt>
<dd>
- <time datetime="{{- .CreatedAt -}}">{{- .CreatedAt | timestampPrecise -}}</time>
+ <time datetime="{{- .CreatedAt -}}">{{- .CreatedAt -}}</time>
</dd>
</div>
{{- if .EditedAt -}}
<div class="stats-item edited-at text-cutoff">
<dt class="sr-only">Edited</dt>
<dd>
- (edited <time datetime="{{- .EditedAt -}}">{{- .EditedAt | timestampPrecise -}}</time>)
+ (edited <time datetime="{{- .EditedAt -}}">{{- .EditedAt -}}</time>)
</dd>
</div>
{{ end }}
diff --git a/web/template/status_poll.tmpl b/web/template/status_poll.tmpl
index 9c2d29166..8b3f0c60a 100644
--- a/web/template/status_poll.tmpl
+++ b/web/template/status_poll.tmpl
@@ -40,9 +40,9 @@
Poll&nbsp;
{{- end -}}
{{- if .Poll.Expired -}}
- closed <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time>
+ closed <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt -}}</time>
{{- else if .Poll.ExpiresAt -}}
- open until <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt | timestampPrecise -}}</time>
+ open until <time datetime="{{- .Poll.ExpiresAt -}}">{{- .Poll.ExpiresAt -}}</time>
{{- else -}}
open forever
{{- end -}}