summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
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);
}