changeset 270:4e0a4ce23497

text_x_arnica: involve timezone of user
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Sun, 14 Sep 2008 22:46:33 +0200
parents 1e3e876e38fb
children d38df8be9dd7
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Sun Sep 14 18:56:15 2008 +0200
+++ b/data/plugin/parser/text_x_arnica.py	Sun Sep 14 22:46:33 2008 +0200
@@ -287,7 +287,7 @@
             webnail = img.url(size=(self.webnail_width, self.webnail_width))
             thumbnail = img.url(size=(self.thumbnail_width, self.thumbnail_width))
             try:
-                exif_date = time.strftime("%Y-%m-%d %H:%M:%S", timefuncs.tmtuple(img.exif["DateTimeOriginal"]))
+                exif_date = time.strftime("%Y-%m-%d %H:%M:%S", self.request.user.getTime(img.exif["DateTimeOriginal"]))
             except KeyError:
                 exif_date = '--'
             self.arnica_image[attfile] = (webnail, thumbnail, exif_date, description, str(order))