Mercurial > gemma
changeset 3095:8c4c1b3fd856
Compare time.Time's with Equal.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Tue, 23 Apr 2019 16:49:36 +0200 |
parents | a347468ea545 |
children | cb3360653652 |
files | pkg/common/time.go |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/pkg/common/time.go Tue Apr 23 12:10:01 2019 +0200 +++ b/pkg/common/time.go Tue Apr 23 16:49:36 2019 +0200 @@ -44,7 +44,7 @@ // m1 - m2 = a*(t1 - t2) // a = (m1 - m2)/(t1 - t2) for t1 != t2 - if t1 == t2 { + if t1.Equal(t2) { return func(t time.Time) (float64, ValueRangeKind) { switch { case t.Before(t1):