Changeset 9088 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 7 Aug 2012, 21:06:42 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser_templates/applicantsrootpage.pt
r8388 r9088 25 25 </td> 26 26 <td> 27 <span tal:content="python: layout.format Date(entry.startdate)">START</span>27 <span tal:content="python: layout.formatTZDate(entry.startdate)">START</span> 28 28 - 29 <span tal:content="python: layout.format Date(entry.enddate)">END</span>29 <span tal:content="python: layout.formatTZDate(entry.enddate)">END</span> 30 30 </td> 31 31 </tr> -
main/waeup.kofa/trunk/src/waeup/kofa/browser/layout.py
r9052 r9088 313 313 else: 314 314 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 315 324 316 325 def update(self):
Note: See TracChangeset for help on using the changeset viewer.