Changeset 8433


Ignore:
Timestamp:
12 May 2012, 09:51:16 (13 years ago)
Author:
Henrik Bettermann
Message:

Store utc not local time which lead to the addition of one hour of one hour.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/etranzact/browser.py

    r8432 r8433  
    9090    msg = _('Successful callback received')
    9191    payment.p_state = 'paid'
    92     payment.payment_date = datetime.now()
     92    payment.payment_date = datetime.utcnow()
    9393    return True, msg, log
    9494
  • main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py

    r8430 r8433  
    117117        return False, msg, log
    118118    payment.p_state = 'paid'
    119     payment.payment_date = datetime.now()
     119    payment.payment_date = datetime.utcnow()
    120120    msg = _('Successful callback received')
    121121    log = 'valid callback for payment %s: %s' % (payment.p_id, sr)
     
    385385#        write_log_message(self,'valid callback: %s' % self.context.p_id)
    386386#        self.context.p_state = 'paid'
    387 #        self.context.payment_date = datetime.now()
     387#        self.context.payment_date = datetime.utcnow()
    388388#        actions_after_student_payment(student, self.context, self)
    389389#        return
Note: See TracChangeset for help on using the changeset viewer.