Changeset 520


Ignore:
Timestamp:
06/06/11 10:37:21 (12 years ago)
Author:
bas
Message:

fixed a bug in the date format used for ticket_update_by_subject.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ChangeLog

    r518 r520  
    1313    Author: Sil Westerveld (SARA)
    1414    Applied by: Bas van der Vlies
     15
     16  * The time format for subject mapping was wrong (ticket_update_by_subject).
     17    So all tickets matched. Converted it to use microseconds instead of
     18    seconds.
     19    Reported by: Walter Lioen (SARA)
     20    Author: Bas van der Vlies & Dennis Stam
    1521
    16222.0.2 (2011-02-13)
  • trunk/email2trac.py.in

    r519 r520  
    7777import tempfile
    7878
    79 from datetime import tzinfo, timedelta, datetime
     79from datetime import timedelta, datetime
    8080from stat import *
    8181
     
    10231023                summaries = [orig_subject, '%%: %s' % orig_subject]
    10241024
    1025                 ## Convert days to seconds
     1025                ## Time resolution is in micoseconds
    10261026                #
    1027                 lookback = int(time.mktime(time.gmtime())) - \
    1028                         self.parameters.ticket_update_by_subject_lookback * 24 * 3600
    1029 
     1027                search_date = datetime.now(util.datefmt.utc) - timedelta(days=self.parameters.ticket_update_by_subject_lookback)
     1028                lookback = util.datefmt.to_utimestamp(search_date)
    10301029
    10311030                for summary in summaries:
Note: See TracChangeset for help on using the changeset viewer.