Skip to content

Commit

Permalink
use Equal function for comparing time.Time objects
Browse files Browse the repository at this point in the history
Fixes #2219
  • Loading branch information
Janardhan Reddy committed Mar 13, 2018
1 parent 82abcd4 commit 3d9d854
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/sort.go
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ func equal(a, b Val) bool {
}
switch a.Tid {
case DateTimeID:
return a.Value.(time.Time) == (b.Value.(time.Time))
return a.Value.(time.Time).Equal((b.Value.(time.Time)))
case IntID:
return (a.Value.(int64)) == (b.Value.(int64))
case FloatID:
Expand Down

0 comments on commit 3d9d854

Please sign in to comment.