Changeset 8194 for main/waeup.kofa/trunk/src/waeup/kofa/students
- Timestamp:
- 17 Apr 2012, 11:40:06 (13 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa/students
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/students/accommodation.py
r8182 r8194 62 62 def __init__(self): 63 63 super(BedTicket, self).__init__() 64 tz = getUtility(IKofaUtils).tzinfo 65 self.booking_date = datetime.now(tz) 64 self.booking_date = datetime.utcnow() 66 65 self.bed = None 67 66 return -
main/waeup.kofa/trunk/src/waeup/kofa/students/browser.py
r8182 r8194 1145 1145 self.context.r_code = u'00' 1146 1146 self.context.p_state = 'paid' 1147 tz = getUtility(IKofaUtils).tzinfo 1148 self.context.payment_date = datetime.now(tz) 1147 self.context.payment_date = datetime.utcnow() 1149 1148 if self.context.p_category == 'clearance': 1150 1149 # Create CLR access code -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r8182 r8194 121 121 # Create 5 access codes with prefix'PWD' 122 122 pin_container = self.app['accesscodes'] 123 tz = getUtility(IKofaUtils).tzinfo124 123 pin_container.createBatch( 125 datetime. now(tz), 'some_userid', 'PWD', 9.99, 5)124 datetime.utcnow(), 'some_userid', 'PWD', 9.99, 5) 126 125 pins = pin_container['PWD-1'].values() 127 126 self.pwdpins = [x.representation for x in pins] -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py
r8181 r8194 80 80 def test_booking_date(self): 81 81 isinstance(self.bedticket.booking_date.tzinfo, tzinfo) 82 self.assertEqual(s tr(self.bedticket.booking_date.tzinfo), 'UTC')82 self.assertEqual(self.bedticket.booking_date.tzinfo, None) 83 83 return 84 84
Note: See TracChangeset for help on using the changeset viewer.