Ignore:
Timestamp:
7 Aug 2012, 21:06:42 (12 years ago)
Author:
Henrik Bettermann
Message:

Take timezone into consideration when displaying the date only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py

    r9052 r9088  
    313313        else:
    314314            return None
     315           
     316    def formatTZDate(self,datetimeobj):
     317        if isinstance(datetimeobj, datetime):
     318            tz = getUtility(IKofaUtils).tzinfo
     319            date = to_timezone(
     320                datetimeobj, tz).strftime("%d/%m/%Y")
     321            return date
     322        else:
     323            return None         
    315324
    316325    def update(self):
Note: See TracChangeset for help on using the changeset viewer.