diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-02-09 00:45:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-02-09 00:45:23 +0100 |
| commit | 98052c06cbe3bd156e1a1a715e439944671dc3ee (patch) | |
| tree | 8c02464d4a1d2565273b4842272f7fadc8edfa88 /src | |
| parent | d1d18d87fa9e0efeb9be78048a54d605ca904735 (diff) | |
Fix use of Z as a timezone (meaning UTC).v1.8.95
Diffstat (limited to 'src')
| -rw-r--r-- | src/local_time.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local_time.cc b/src/local_time.cc index 7d090304..f125b38f 100644 --- a/src/local_time.cc +++ b/src/local_time.cc @@ -165,7 +165,7 @@ LocalTime::LocalTime (string s) } /* Timezone */ - if (pos != s.length()) { + if (pos != s.length() && s[pos] != 'Z') { if (s[pos] != '+' && s[pos] != '-') { throw TimeFormatError(s); } |
