summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-02-09 00:45:23 +0100
committerCarl Hetherington <cth@carlh.net>2024-02-09 00:45:23 +0100
commit98052c06cbe3bd156e1a1a715e439944671dc3ee (patch)
tree8c02464d4a1d2565273b4842272f7fadc8edfa88 /src
parentd1d18d87fa9e0efeb9be78048a54d605ca904735 (diff)
Fix use of Z as a timezone (meaning UTC).v1.8.95
Diffstat (limited to 'src')
-rw-r--r--src/local_time.cc2
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);
}