uilib.py
changeset 7464 9f116f9b3be8
parent 7411 238da9684f99
child 7575 335f14e8e5a7
--- a/uilib.py	Mon Jun 06 17:44:43 2011 +0200
+++ b/uilib.py	Mon Jun 06 19:54:37 2011 +0200
@@ -62,12 +62,18 @@
         return value
     if attrtype == 'Date':
         return ustrftime(value, req.property_value('ui.date-format'))
-    if attrtype in ('Time', 'TZTime'):
+    if attrtype == 'Time':
         return ustrftime(value, req.property_value('ui.time-format'))
-    if attrtype in ('Datetime', 'TZDatetime'):
+    if attrtype == 'TZTime':
+        return ustrftime(value, req.property_value('ui.time-format')) + u' UTC'
+    if attrtype == 'Datetime':
         if displaytime:
             return ustrftime(value, req.property_value('ui.datetime-format'))
         return ustrftime(value, req.property_value('ui.date-format'))
+    if attrtype == 'TZDatetime':
+        if displaytime:
+            return ustrftime(value, req.property_value('ui.datetime-format')) + u' UTC'
+        return ustrftime(value, req.property_value('ui.date-format'))
     if attrtype == 'Boolean':
         if value:
             return req._('yes')