Changeset 2857

Show
Ignore:
Timestamp:
12/07/07 22:11:34 (1 year ago)
Author:
athomas
Message:

Fixed #2269, thanks mayer.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xmlrpcplugin/trunk/tracrpc/ticket.py

    r2626 r2857  
    88from trac.ticket.api import TicketSystem 
    99from trac.ticket.notification import TicketNotifyEmail 
    10  
    11 import time 
     10from trac.util.datefmt import utc 
     11 
     12from datetime import datetime 
    1213import inspect 
    1314import xmlrpclib 
     
    9798    def update(self, req, id, comment, attributes = {}, notify=False): 
    9899        """ Update a ticket, returning the new ticket in the same form as getTicket(). """ 
    99         now = time.time(
     100        now = datetime.now(utc
    100101 
    101102        t = model.Ticket(self.env, id)