1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-23 00:54:28 +00:00
gitea/modules/timeutil
Yarden Shoham b4e952545b
Remove untranslatable on_date key (#24106)
- Follows #23988 
- Fixes: #24074 by removing this key

GitHub's `relative-time` elements allow us to force their rendering to
`auto`, `past`, or `future` tense. We will never show an absolute date
`on ...` in `TimeSince`

## Before

![image](https://user-images.githubusercontent.com/20454870/231735872-048c7bf3-6aa1-4113-929d-75a985c9922c.png)

## After

![image](https://user-images.githubusercontent.com/20454870/231736116-6ad47b63-77f4-4d3f-82a2-ee9a46ba2bd1.png)

---------

Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
2023-04-15 13:01:54 +02:00
..
executable.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
language.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
since_test.go Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00
since.go Remove untranslatable on_date key (#24106) 2023-04-15 13:01:54 +02:00
timestamp.go Use auto-updating, natively hoverable, localized time elements (#23988) 2023-04-11 01:01:20 +02:00