Fix use of Z as a timezone (meaning UTC).
[libdcp.git] / src / local_time.cc
index 7d0903048658523e306b5fc81a21a1d069362553..f125b38f6cb12011cc8cd48926f8ab943e924fa6 100644 (file)
@@ -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);
                }