MCPcopy Create free account
hub / github.com/cel-expr/cel-go / DefaultUTCTimeZone

Function DefaultUTCTimeZone

cel/options.go:913–915  ·  view source on GitHub ↗

DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the input time's local timezone.

(enabled bool)

Source from the content-addressed store, hash-verified

911// DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the
912// input time's local timezone.
913func DefaultUTCTimeZone(enabled bool) EnvOption {
914 return features(featureDefaultUTCTimeZone, enabled)
915}
916
917// features sets the given feature flags. See list of Feature constants above.
918func features(flag int, enabled bool) EnvOption {

Callers 2

TestEnvToConfigFunction · 0.85

Calls 1

featuresFunction · 0.85

Tested by 2

TestEnvToConfigFunction · 0.68