1
0
mirror of https://github.com/go-gitea/gitea synced 2024-11-10 17:25:54 +01:00
gitea/modules/util
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
..
compare.go Simplify parameter types (#18006) 2021-12-20 04:41:31 +00:00
copy.go migrate from com.* to alternatives (#14103) 2020-12-25 11:59:32 +02:00
io.go Read expected buffer size (#17409) 2021-10-24 22:12:43 +01:00
net.go Only allow webhook to send requests to allowed hosts (#17482) 2021-11-01 16:39:52 +08:00
paginate_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
paginate.go [API] Add pagination to ListBranches (#14524) 2021-02-03 20:06:13 +01:00
path_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
path.go Include folders into size cost (#18158) 2022-01-03 23:24:12 +00:00
remove.go Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 2021-07-20 20:23:01 +03:00
sanitize_test.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
sanitize.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
sec_to_time_test.go Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
sec_to_time.go Fix display time of milestones (#18753) 2022-02-16 00:50:10 +08:00
shellquote_test.go Fix various documentation, user-facing, and source comment typos (#16367) 2021-07-08 13:38:13 +02:00
shellquote.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
timer.go Prevent timer leaks in Workerpool and others (#11333) 2020-05-08 16:46:05 +01:00
truncate_test.go Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 2021-12-09 05:41:17 +00:00
truncate.go format with gofumpt (#18184) 2022-01-20 18:46:10 +01:00
url.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 2020-08-11 21:05:34 +01:00
util_test.go Fix non-ASCII search on database (#18437) 2022-02-01 20:59:25 +08:00
util.go Fix non-ASCII search on database (#18437) 2022-02-01 20:59:25 +08:00