diff options
author | Vladimir Sysoev <vladimir.sysoev@gmail.com> | 2025-01-19 04:30:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-19 09:30:44 +0800 |
commit | dc2308a95908091c036011252fbca38980c8846c (patch) | |
tree | daf5b195cca0a73ea3e78792cdcaadc1318d000c /modules/templates | |
parent | f250ee6360e306d97d4ab6c2f803af1707af489d (diff) | |
download | gitea-dc2308a95908091c036011252fbca38980c8846c.tar.gz gitea-dc2308a95908091c036011252fbca38980c8846c.zip |
Make tracked time representation display as hours (#33315)
Estimated time represented in hours it might be convenient to
have tracked time represented in the same way to be compared and
managed.
---------
Co-authored-by: Sysoev, Vladimir <i@vsysoev.ru>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Diffstat (limited to 'modules/templates')
-rw-r--r-- | modules/templates/helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/templates/helper.go b/modules/templates/helper.go index 609407d36b..a2cc166de9 100644 --- a/modules/templates/helper.go +++ b/modules/templates/helper.go @@ -69,7 +69,7 @@ func NewFuncMap() template.FuncMap { // time / number / format "FileSize": base.FileSize, "CountFmt": countFmt, - "Sec2Time": util.SecToTime, + "Sec2Time": util.SecToHours, "TimeEstimateString": timeEstimateString, |