Changeset 529 for trunk/email2trac.py.in


Ignore:
Timestamp:
06/30/11 10:42:57 (13 years ago)
Author:
bas
Message:

fixed a bug in ticket update by subject for trac version less then 0.12, closes #248

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/email2trac.py.in

    r528 r529  
    10411041                #
    10421042                search_date = datetime.now(util.datefmt.utc) - timedelta(days=self.parameters.ticket_update_by_subject_lookback)
    1043                 lookback = util.datefmt.to_utimestamp(search_date)
     1043
     1044                if self.VERSION < 0.12:
     1045                    lookback = util.datefmt.to_timestamp(search_date)
     1046                else:
     1047                    lookback = util.datefmt.to_utimestamp(search_date)
    10441048
    10451049                for summary in summaries:
Note: See TracChangeset for help on using the changeset viewer.