Ignore:
Timestamp:
17 Apr 2012, 11:40:06 (12 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/payments/payment.py

    r8182 r8194  
    3838    def __init__(self):
    3939        super(Payment, self).__init__()
    40         try:
    41             tz = getUtility(IKofaUtils).tzinfo
    42         except:
    43             #In unit tests KofaUtils is not available.
    44             tz = None
    45         self.creation_date = datetime.now(tz)
     40        self.creation_date = datetime.utcnow()
    4641        self.p_id = None
    4742        return
Note: See TracChangeset for help on using the changeset viewer.