* Fix timezone on issue deadline
* FormatDate
Co-authored-by: zeripath <art27@cantab.net>
(cherry picked from commit bbe13b60cd
)
This commit is contained in:
parent
921a5c0b62
commit
287e2c781b
3 changed files with 8 additions and 3 deletions
|
@ -75,6 +75,11 @@ func (ts TimeStamp) FormatShort() string {
|
|||
return ts.Format("Jan 02, 2006")
|
||||
}
|
||||
|
||||
// FormatDate formats a date in YYYY-MM-DD server time zone
|
||||
func (ts TimeStamp) FormatDate() string {
|
||||
return time.Unix(int64(ts), 0).String()[:10]
|
||||
}
|
||||
|
||||
// IsZero is zero time
|
||||
func (ts TimeStamp) IsZero() bool {
|
||||
return ts.AsTimeInLocation(time.Local).IsZero()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue