| 1016 | |
| 1017 | if (!tryParseTimestampString(str, len, pos, resultTimestamp)) { |
| 1018 | return std::nullopt; |
| 1019 | } |
| 1020 | |
| 1021 | int16_t timezoneID = -1; |
| 1022 | |
| 1023 | if (pos < len && characterIsSpace(str[pos])) { |
| 1024 | pos++; |
| 1025 | } |
| 1026 | |
| 1027 | // If there is anything left to parse, it must be a timezone definition. |
| 1028 | if (pos < len) { |
| 1029 | size_t timezonePos = pos; |
| 1030 | while (timezonePos < len && !characterIsSpace(str[timezonePos])) { |
| 1031 | timezonePos++; |
no test coverage detected