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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/accesscodes/tests/test_accesscode.py

    r8186 r8194  
    259259        self.app = self.getRootFolder()['app']
    260260
    261         tz = getUtility(IKofaUtils).tzinfo
    262261        batch = AccessCodeBatch(    # create batch with zero entries
    263             datetime.now(tz), 'testuser', 'FOO', 9.99, 0)
     262            datetime.utcnow(), 'testuser', 'FOO', 9.99, 0)
    264263        self.app['accesscodes'].addBatch(batch)
    265264
Note: See TracChangeset for help on using the changeset viewer.