Commit Graph

5 Commits (68731c07c52d35b7b44db1c2f5f7a755efcc8c84)

Author SHA1 Message Date
Lunny Xiao 24b83ff63e
Fix milestone deadline and date related problems (#32339)
Use zero instead of 9999-12-31 for deadline
Fix #32291

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Giteabot <teabot@gitea.io>
4 months ago
wxiaoguang 4a469c8e1b
Refactor template ctx and render utils (#32422)
Clean up the templates
4 months ago
wxiaoguang b068dbd40e
Refactor DateUtils and merge TimeSince (#32409)
Follow #32383 and #32402
4 months ago
wxiaoguang 259811617b
Replace DateTime with proper functions (#32402)
Follow #32383

This PR cleans up the "Deadline" usages in templates, make them call
`ParseLegacy` first to get a `Time` struct then display by `DateUtils`.

Now it should be pretty clear how "deadline string" works, it makes it
possible to do further refactoring and correcting.
4 months ago
wxiaoguang fec6b3d500
Replace DateTime with DateUtils (#32383) 4 months ago