From 0b9b21c06c0f9cb7ed31173fe86872b93b9b96b0 Mon Sep 17 00:00:00 2001 From: Olivier Tilloy Date: Sun, 4 Mar 2007 22:37:40 +0100 Subject: Added a recognized format for string to datetime conversion. --- src/pyexiv2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/pyexiv2.py') 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: -- cgit