- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for UTCNowNTP (0.06 sec)
-
cmd/bucket-object-lock.go
return true } ret := objectlock.GetObjectRetentionMeta(objInfo.UserDefined) if ret.Mode.Valid() && (ret.Mode == objectlock.RetCompliance || ret.Mode == objectlock.RetGovernance) { t, err := objectlock.UTCNowNTP() if err != nil { internalLogIf(ctx, err, logger.WarningKind) return true } if ret.RetainUntilDate.After(t) { return true } } return false }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri May 24 23:05:23 UTC 2024 - 13.2K bytes - Viewed (0) -
internal/bucket/object/lock/lock.go
) const ( ntpServerEnv = "MINIO_NTP_SERVER" ) var ntpServer = env.Get(ntpServerEnv, "") // UTCNowNTP - is similar in functionality to UTCNow() // but only used when we do not wish to rely on system // time. func UTCNowNTP() (time.Time, error) { // ntp server is disabled if ntpServer == "" { return time.Now().UTC(), nil } return ntp.Time(ntpServer) }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Sat Jun 29 01:20:27 UTC 2024 - 17.1K bytes - Viewed (0)