mirror of
https://github.com/helm/helm.git
synced 2026-05-28 04:35:48 -04:00
fix ByDate sorter to use Time.Unix()
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
This commit is contained in:
parent
7d3f85998b
commit
d40f3c63ea
1 changed files with 2 additions and 2 deletions
|
|
@ -38,8 +38,8 @@ type ByDate struct{ list }
|
|||
|
||||
// Less compares to releases
|
||||
func (s ByDate) Less(i, j int) bool {
|
||||
ti := s.list[i].Info.LastDeployed.Second()
|
||||
tj := s.list[j].Info.LastDeployed.Second()
|
||||
ti := s.list[i].Info.LastDeployed.Unix()
|
||||
tj := s.list[j].Info.LastDeployed.Unix()
|
||||
return ti < tj
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue