Package `time` documents that: > Do not use == with Time values. (Source: https://godoc.org/time#Time.Equal.) This probably extends to `!=` for inequality checks too.