aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOlivier Tilloy <olivier@tilloy.net>2007-03-04 22:37:40 +0100
committerOlivier Tilloy <olivier@tilloy.net>2007-03-04 22:37:40 +0100
commit0b9b21c06c0f9cb7ed31173fe86872b93b9b96b0 (patch)
tree6651b74c1d35afd1393efec4ff44e78160c91038 /src
parent15d7b54dc9903f73588d5b3986be3a9221625e55 (diff)
downloadpyexiv2-0b9b21c06c0f9cb7ed31173fe86872b93b9b96b0.tar.gz
Added a recognized format for string to datetime conversion.
Diffstat (limited to 'src')
-rw-r--r--src/pyexiv2.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pyexiv2.py b/src/pyexiv2.py
index 9f61a69..65cc888 100644
--- a/src/pyexiv2.py
+++ b/src/pyexiv2.py
@@ -184,7 +184,7 @@ def StringToDateTime(string):
# only accepted format for a string field representing a datetime is
# '%Y-%m-%d %H:%M:%S', but it seems that others formats can be found in the
# wild, so this list could be extended to include new exotic formats.
- formats = ['%Y-%m-%d %H:%M:%S', '%Y-%m-%dT%H:%M:%SZ']
+ formats = ['%Y-%m-%d %H:%M:%S', '%Y:%m:%d %H:%M:%S', '%Y-%m-%dT%H:%M:%SZ']
for format in formats:
try: