diff --git a/pkg/daemonsetlock/daemonsetlock.go b/pkg/daemonsetlock/daemonsetlock.go index 47da093..84de9df 100644 --- a/pkg/daemonsetlock/daemonsetlock.go +++ b/pkg/daemonsetlock/daemonsetlock.go @@ -134,7 +134,7 @@ func (dsl *DaemonSetLock) Release() error { } func ttlExpired(created time.Time, ttl time.Duration) bool { - if ttl > 0 && time.Now().UTC().Sub(created) >= ttl { + if ttl > 0 && time.Since(created) >= ttl { return true } return false