projects
/
libdcp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix use of Z as a timezone (meaning UTC).
[libdcp.git]
/
src
/
local_time.cc
diff --git
a/src/local_time.cc
b/src/local_time.cc
index 7d0903048658523e306b5fc81a21a1d069362553..f125b38f6cb12011cc8cd48926f8ab943e924fa6 100644
(file)
--- 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);
}