diff options
author | Olivier Tilloy <olivier@tilloy.net> | 2007-03-04 22:37:40 +0100 |
---|---|---|
committer | Olivier Tilloy <olivier@tilloy.net> | 2007-03-04 22:37:40 +0100 |
commit | 0b9b21c06c0f9cb7ed31173fe86872b93b9b96b0 (patch) | |
tree | 6651b74c1d35afd1393efec4ff44e78160c91038 | |
parent | 15d7b54dc9903f73588d5b3986be3a9221625e55 (diff) | |
download | pyexiv2-0b9b21c06c0f9cb7ed31173fe86872b93b9b96b0.tar.gz |
Added a recognized format for string to datetime conversion.
-rw-r--r-- | src/pyexiv2.py | 2 |
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: |