Ignore:
Timestamp:
27 Feb 2015, 21:56:34 (10 years ago)
Author:
Henrik Bettermann
Message:

Show validity period on contract pages and slips.

File:
1 edited

Legend:

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

    r12576 r12634  
    3434from waeup.ikoba.interfaces import IIkobaObject, IUserAccount, IIkobaUtils
    3535from waeup.ikoba.interfaces import MessageFactory as _
    36 from waeup.ikoba.utils.helpers import to_timezone
     36from waeup.ikoba.utils.helpers import to_timezone, format_date
    3737from waeup.ikoba.authentication import get_principal_role_manager
    3838from waeup.ikoba.browser.interfaces import ICustomerNavigationBase
     
    284284
    285285    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)
    290287           
    291288    def formatTZDate(self,datetimeobj):
Note: See TracChangeset for help on using the changeset viewer.