Changeset 12634 for main/waeup.ikoba/trunk/src/waeup/ikoba/browser
- Timestamp:
- 27 Feb 2015, 21:56:34 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.ikoba/trunk/src/waeup/ikoba/browser/layout.py
r12576 r12634 34 34 from waeup.ikoba.interfaces import IIkobaObject, IUserAccount, IIkobaUtils 35 35 from waeup.ikoba.interfaces import MessageFactory as _ 36 from waeup.ikoba.utils.helpers import to_timezone 36 from waeup.ikoba.utils.helpers import to_timezone, format_date 37 37 from waeup.ikoba.authentication import get_principal_role_manager 38 38 from waeup.ikoba.browser.interfaces import ICustomerNavigationBase … … 284 284 285 285 def formatDate(self,dateobj): 286 if isinstance(dateobj, date): 287 return dateobj.strftime("%d/%m/%Y") 288 else: 289 return None 286 return format_date(dateobj, self.request) 290 287 291 288 def formatTZDate(self,datetimeobj):
Note: See TracChangeset for help on using the changeset viewer.