You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
2 years ago
..
compare.go Simplify parameter types (#18006) 3 years ago
copy.go migrate from com.* to alternatives (#14103) 4 years ago
io.go Read expected buffer size (#17409) 3 years ago
net.go Only allow webhook to send requests to allowed hosts (#17482) 3 years ago
paginate.go [API] Add pagination to ListBranches (#14524) 3 years ago
paginate_test.go format with gofumpt (#18184) 2 years ago
path.go Include folders into size cost (#18158) 3 years ago
path_test.go format with gofumpt (#18184) 2 years ago
remove.go Make cancel from CatFileBatch and CatFileBatchCheck wait for the command to end (#16479) 3 years ago
sanitize.go format with gofumpt (#18184) 2 years ago
sanitize_test.go format with gofumpt (#18184) 2 years ago
sec_to_time.go Fix display time of milestones (#18753) 2 years ago
sec_to_time_test.go Fix display time of milestones (#18753) 2 years ago
shellquote.go format with gofumpt (#18184) 2 years ago
shellquote_test.go Fix various documentation, user-facing, and source comment typos (#16367) 3 years ago
timer.go Prevent timer leaks in Workerpool and others (#11333) 4 years ago
truncate.go format with gofumpt (#18184) 2 years ago
truncate_test.go Fix a panic in NotifyCreateIssueComment (caused by string truncation) (#17928) 3 years ago
url.go Re-attempt to delete temporary upload if the file is locked by another process (#12447) 4 years ago
util.go Fix non-ASCII search on database (#18437) 2 years ago
util_test.go Fix non-ASCII search on database (#18437) 2 years ago