Ignore:
Timestamp:
17 Apr 2012, 11:40:06 (13 years ago)
Author:
Henrik Bettermann
Message:

Store utc without tzinfo in persistent datetime objects. Localisation will be done in views only.

Location:
main/waeup.kofa/trunk/src/waeup/kofa/students/tests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py

    r8182 r8194  
    121121        # Create 5 access codes with prefix'PWD'
    122122        pin_container = self.app['accesscodes']
    123         tz = getUtility(IKofaUtils).tzinfo
    124123        pin_container.createBatch(
    125             datetime.now(tz), 'some_userid', 'PWD', 9.99, 5)
     124            datetime.utcnow(), 'some_userid', 'PWD', 9.99, 5)
    126125        pins = pin_container['PWD-1'].values()
    127126        self.pwdpins = [x.representation for x in pins]
  • main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_student.py

    r8181 r8194  
    8080    def test_booking_date(self):
    8181        isinstance(self.bedticket.booking_date.tzinfo, tzinfo)
    82         self.assertEqual(str(self.bedticket.booking_date.tzinfo), 'UTC')
     82        self.assertEqual(self.bedticket.booking_date.tzinfo, None)
    8383        return
    8484
Note: See TracChangeset for help on using the changeset viewer.