StrictTimestampParsing controls how strictly timestamp strings and numeric timezone offsets are validated. Strict parsing is the default and is equivalent to StrictTimestampParsing(true): - timestamp(string) accepts only RFC 3339 date-time strings. Inputs which time.Parse accepts but RFC 3339 forb
(enabled bool)
| 1148 | // evaluating expressions, or data, that were accepted by earlier releases. The relaxed rules also |
| 1149 | // apply to timestamp literal validation (see ValidateTimestampLiterals). |
| 1150 | func StrictTimestampParsing(enabled bool) EnvOption { |
| 1151 | return features(featureStrictTimestampParsing, enabled) |
| 1152 | } |
| 1153 | |
| 1154 | // features sets the given feature flags. See list of Feature constants above. |
| 1155 | func features(flag int, enabled bool) EnvOption { |