changeset 573:c760e6c61a0d

arnica: the date of non exif images is changed to the modification time (not the upload time)
author sudo_dirk<d.alders@arcor.de>
date Sun, 05 Feb 2012 22:19:01 +0100
parents d53b63f94da8
children 7520756bc7f9
files data/plugin/macro/Image.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/macro/Image.py	Sun Feb 05 22:02:59 2012 +0100
+++ b/data/plugin/macro/Image.py	Sun Feb 05 22:19:01 2012 +0100
@@ -159,7 +159,7 @@
             try:
                 ctime = self.exif['DateTimeOriginal']
             except KeyError:
-                ctime = os.path.getctime(self._filename)
+                ctime = os.path.getmtime(self._filename)
             self.__ctime = ctime
         return self.__ctime
     ctime = property(_get_ctime)