[CHORE] Add extra testing

- Do more property testing for null values.
- Add test for `AbsoluteLong`.
This commit is contained in:
Gusted 2024-11-05 21:20:55 +01:00
parent fddde93759
commit 2f8e7a2c67
No known key found for this signature in database
GPG key ID: FD821B732837125F
2 changed files with 16 additions and 6 deletions

View file

@ -27,7 +27,7 @@ func (du *DateUtils) AbsoluteShort(time any) template.HTML {
// AbsoluteLong renders in "January 01, 2006" format
func (du *DateUtils) AbsoluteLong(time any) template.HTML {
return timeutil.DateTime("short", time)
return timeutil.DateTime("long", time)
}
// FullTime renders in "Jan 01, 2006 20:33:44" format