Changeset 8182 for main/waeup.kofa/trunk/src/waeup/kofa/payments
- Timestamp:
- 16 Apr 2012, 20:56:59 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/payments/payment.py
r7811 r8182 22 22 from datetime import datetime 23 23 from grok import index 24 from zope.component import getUtility 25 from waeup.kofa.interfaces import IKofaUtils 24 26 from waeup.kofa.payments.interfaces import ( 25 27 IPayment, ISCPayment, IOnlinePayment, … … 36 38 def __init__(self): 37 39 super(Payment, self).__init__() 38 self.creation_date = datetime.now() 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) 39 46 self.p_id = None 40 47 return
Note: See TracChangeset for help on using the changeset viewer.