changeset 310:2c7089c556e9

text_x_arnica: removed dependency of time module?
author Reimar Bauer <rb.proj AT googlemail DOT com>
date Thu, 27 Nov 2008 15:27:29 +0100
parents da0bb5e04a91
children 81dc3a93fd84
files data/plugin/parser/text_x_arnica.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/data/plugin/parser/text_x_arnica.py	Thu Nov 27 10:47:54 2008 +0100
+++ b/data/plugin/parser/text_x_arnica.py	Thu Nov 27 15:27:29 2008 +0100
@@ -14,7 +14,7 @@
     @license: GNU GPL, see COPYING for details.
 """
 
-import os, re, time
+import os, re
 from random import randint
 from MoinMoin import wikiutil
 from MoinMoin.action import AttachFile
@@ -272,7 +272,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", self.request.user.getTime(img.exif["DateTimeOriginal"]))
+                exif_date = self.request.user.getFormattedDateTime(img.ctime)
             except KeyError:
                 exif_date = '--'
             self.arnica_image[attfile] = (webnail, thumbnail, exif_date, description, str(order))