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/applicants/browser.py

    r8186 r8194  
    521521        self.context.r_code = u'00'
    522522        self.context.p_state = 'paid'
    523         tz = getUtility(IKofaUtils).tzinfo
    524         self.context.payment_date = datetime.now(tz)
     523        self.context.payment_date = datetime.utcnow()
    525524        ob_class = self.__implemented__.__name__.replace('waeup.kofa.','')
    526525        self.context.__parent__.loggerInfo(
     
    828827            return
    829828        IWorkflowInfo(self.context).fireTransition('submit')
    830         tz = getUtility(IKofaUtils).tzinfo
    831         self.context.application_date = now(tz)
     829        self.context.application_date = datetime.utcnow()
    832830        self.context.locked = True
    833831        self.flash(_('Form has been submitted.'))
Note: See TracChangeset for help on using the changeset viewer.