aboutsummaryrefslogtreecommitdiffstats
path: root/templates/devtest/gitea-ui.tmpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/devtest/gitea-ui.tmpl')
-rw-r--r--templates/devtest/gitea-ui.tmpl14
1 files changed, 7 insertions, 7 deletions
diff --git a/templates/devtest/gitea-ui.tmpl b/templates/devtest/gitea-ui.tmpl
index 06d0e36569..56874917b2 100644
--- a/templates/devtest/gitea-ui.tmpl
+++ b/templates/devtest/gitea-ui.tmpl
@@ -139,13 +139,13 @@
<div>
<h1>TimeSince</h1>
- <div>Now: {{TimeSince .TimeNow ctx.Locale}}</div>
- <div>5s past: {{TimeSince .TimePast5s ctx.Locale}}</div>
- <div>5s future: {{TimeSince .TimeFuture5s ctx.Locale}}</div>
- <div>2m past: {{TimeSince .TimePast2m ctx.Locale}}</div>
- <div>2m future: {{TimeSince .TimeFuture2m ctx.Locale}}</div>
- <div>1y past: {{TimeSince .TimePast1y ctx.Locale}}</div>
- <div>1y future: {{TimeSince .TimeFuture1y ctx.Locale}}</div>
+ <div>Now: {{DateUtils.TimeSince .TimeNow}}</div>
+ <div>5s past: {{DateUtils.TimeSince .TimePast5s}}</div>
+ <div>5s future: {{DateUtils.TimeSince .TimeFuture5s}}</div>
+ <div>2m past: {{DateUtils.TimeSince .TimePast2m}}</div>
+ <div>2m future: {{DateUtils.TimeSince .TimeFuture2m}}</div>
+ <div>1y past: {{DateUtils.TimeSince .TimePast1y}}</div>
+ <div>1y future: {{DateUtils.TimeSince .TimeFuture1y}}</div>
</div>
<div>