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

Function DefaultUTCTimeZone

cel/options.go:973–975  ·  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

971// DefaultUTCTimeZone ensures that time-based operations use the UTC timezone rather than the
972// input time's local timezone.
973func DefaultUTCTimeZone(enabled bool) EnvOption {
974 return features(featureDefaultUTCTimeZone, enabled)
975}
976
977// features sets the given feature flags. See list of Feature constants above.
978func features(flag int, enabled bool) EnvOption {

Callers 2

TestEnvToConfigFunction · 0.85

Calls 1

featuresFunction · 0.85

Tested by 2

TestEnvToConfigFunction · 0.68