mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-24 01:24:39 +02:00
1 parent
15cdb19d77
commit
adbf576a6e
2 files changed
+6
-1
No files matched your search
@@ -59,3 +59,8 @@ func (ts TimeStamp) FormatLong() string {
|
||||
func (ts TimeStamp) FormatShort() string {
|
||||
return ts.Format("Jan 02, 2006")
|
||||
}
|
||||
|
||||
// IsZero is zero time
|
||||
func (ts TimeStamp) IsZero() bool {
|
||||
return ts.AsTime().IsZero()
|
||||
}
|
||||
Reference in new issue
Block a user