mirror of
https://github.com/helm/helm.git
synced 2026-08-08 17:11:18 +00:00
fix ByDate sorter to use Time.Unix()
Signed-off-by: Abhilash Gnan <abhilashgnan@gmail.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user