mirror of
https://github.com/Jguer/yay.git
synced 2024-11-06 09:07:21 +01:00
Use ISO 8601 date format (yyyy-mm-dd)
This commit is contained in:
parent
5307e97d66
commit
e6dae03329
4
print.go
4
print.go
@ -398,10 +398,10 @@ outer:
|
||||
return nil
|
||||
}
|
||||
|
||||
// Formats a unix timestamp to yyyy/mm/dd
|
||||
// Formats a unix timestamp to ISO 8601 date (yyyy-mm-dd)
|
||||
func formatTime(i int) string {
|
||||
t := time.Unix(int64(i), 0)
|
||||
return fmt.Sprintf("%d/%02d/%02d", t.Year(), int(t.Month()), t.Day())
|
||||
return t.Format("2006-01-02")
|
||||
}
|
||||
|
||||
const (
|
||||
|
Loading…
Reference in New Issue
Block a user