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.
forgejo/modules/timeutil
Gusted 40ba750c4b
Check for zero time instant in `TimeStamp.IsZero()` (#22171)
- Currently, the 'IsZero' function for 'TimeStamp' just checks if the
unix time is zero, which is not the behavior of 'Time.IsZero()', but
Gitea is using this method in accordance with the behavior of
'Time.IsZero()'.
- Adds a new condition to check for the zero time instant.
- Fixes a bug where non-expiring GPG keys where shown as they expired on
Jan 01, 0001.
- Related https://codeberg.org/Codeberg/Community/issues/791

Before:

![image](https://user-images.githubusercontent.com/25481501/208509035-ecc5fa4a-3bd1-4fa3-beba-90875719163c.png)

After:

![image](https://user-images.githubusercontent.com/25481501/208508950-3e7f6eeb-be83-432a-89a6-d738553dafe4.png)
1 year ago
..
executable.go Implement FSFE REUSE for golang files (#21840) 1 year ago
language.go Implement FSFE REUSE for golang files (#21840) 1 year ago
since.go Implement FSFE REUSE for golang files (#21840) 1 year ago
since_test.go Implement FSFE REUSE for golang files (#21840) 1 year ago
timestamp.go Check for zero time instant in `TimeStamp.IsZero()` (#22171) 1 year ago