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