- Timestamp:
- 16 Apr 2012, 20:56:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/accommodation.py
r7811 r8182 21 21 from datetime import datetime 22 22 import grok 23 from zope.component import getUtility 23 24 from zope.component.interfaces import IFactory 24 25 from zope.interface import implementedBy 25 from waeup.kofa.interfaces import academic_sessions_vocab 26 from waeup.kofa.interfaces import academic_sessions_vocab, IKofaUtils 26 27 from waeup.kofa.students.interfaces import ( 27 28 IStudentAccommodation, IStudentNavigation, IBedTicket) … … 61 62 def __init__(self): 62 63 super(BedTicket, self).__init__() 63 self.booking_date = datetime.now() 64 tz = getUtility(IKofaUtils).tzinfo 65 self.booking_date = datetime.now(tz) 64 66 self.bed = None 65 67 return
Note: See TracChangeset for help on using the changeset viewer.