diff options
author | yp05327 <576951401@qq.com> | 2023-05-04 08:53:43 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-03 19:53:43 -0400 |
commit | dbb37367854d108ebfffcac27837c0afac199a8e (patch) | |
tree | a0f962e0d6f13ad07adede0ad6066ed760fcaadb /templates | |
parent | 4a722c9a45659e7732258397bbb3dd1039ea1952 (diff) | |
download | gitea-dbb37367854d108ebfffcac27837c0afac199a8e.tar.gz gitea-dbb37367854d108ebfffcac27837c0afac199a8e.zip |
Fix incorrect webhook time and use relative-time to display it (#24477)
Fixes #24414
After click replay this webhook, it will display `now`
![image](https://user-images.githubusercontent.com/18380374/235559399-05a23927-13f5-442d-8f10-2c7cd24022a0.png)
---------
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
Diffstat (limited to 'templates')
-rw-r--r-- | templates/repo/settings/webhook/history.tmpl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/repo/settings/webhook/history.tmpl b/templates/repo/settings/webhook/history.tmpl index 8eba5cde68..7020bf0ba4 100644 --- a/templates/repo/settings/webhook/history.tmpl +++ b/templates/repo/settings/webhook/history.tmpl @@ -21,7 +21,7 @@ <a class="ui primary sha label toggle button show-panel" data-panel="#info-{{.ID}}">{{.UUID}}</a> <div class="ui right"> <span class="text grey time"> - {{.DeliveredString}} + {{TimeSince .Delivered.AsTime $.locale}} </span> </div> </div> |