0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-01 15:52:05 +01:00
gitea/modules
René Schaar 609c91665e
Fix display time of milestones (#18753)
* Fix display time of milestones

* Move the SecToTime function

From the models/issue_stopwatch.go file to the modules/util package

* Rename the sec_to_time file

* Updated formatting

* Include copyright notice in sec_to_time.go

* Apply PR review suggestions

- Update copyright notice dates to 2022
- Change `1 day 3h 5min 7s` to `1d 3h 5m 7s`

* Rename hrs var and combine conditions

* Update unit tests to match new time pattern

Changed `1min` to `1m`

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-02-16 00:50:10 +08:00
..
activitypub
analyze
appstate
auth
avatar
base
cache
charset
context Display template path of current page in dev mode (#18717) 2022-02-12 01:08:22 +08:00
convert
csv
doctor
emoji
eventsource
generate
git Prevent dangling GetAttribute calls (#18754) 2022-02-14 18:03:56 +01:00
gitgraph Change git.cmd to RunWithContext (#18693) 2022-02-11 13:47:22 +01:00
graceful
hcaptcha
highlight
hostmatcher
httpcache
httplib
indexer
json
lfs
log
markup
metrics
migration
nosql
notification Send mail to issue/pr assignee/reviewer also when OnMention is set (#18707) 2022-02-12 07:17:34 +00:00
options
password
pprof
private
process
proxy
public
queue Add number in queue status to monitor page (#18712) 2022-02-12 13:31:26 +08:00
recaptcha
references
repository
secret
session
setting
ssh
storage
structs
svg
sync
templates Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
test
timeutil
translation
typesniffer
updatechecker
upload
uri
user
util Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
validation
web