Modify

Opened 8 years ago

Closed 5 years ago

#434 closed defect (fixed)

Translate all times to UTC

Reported by: athomas Owned by: athomas
Priority: normal Component: XmlRpcPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

All times should be in UTC, converted to/from localtime during transport.

Attachments (1)

xmlrpc-utc.patch (480 bytes) - added by stp 8 years ago.
Expects date object to be in UTC

Download all attachments as: .zip

Change History (7)

comment:1 Changed 8 years ago by steffenp@…

Does that mean all time stamps returned by XML-RPC currently in the server's time zone? If yes, is there a way to retrieve that time zone?

Changed 8 years ago by stp

Expects date object to be in UTC

comment:2 Changed 8 years ago by stp

I have looked into the time conversion and I think the attached patch will at least resolve this report for the ticket API. It expects date objects to be in UTC.

All returned time stamps are integers (seconds elapsed since 1970 in UTC) so nothing needs be changed there.

comment:3 Changed 8 years ago by athomas

  • Resolution set to fixed
  • Status changed from new to closed

(In [1735]) Applied patches from gotoh and stp, thanks. Closes #434 and #845.

comment:4 Changed 8 years ago by athomas

  • Resolution fixed deleted
  • Status changed from closed to reopened

Reopening because, as stp notes, this doesn't convert some timestamps in returned structures correctly.

comment:5 Changed 5 years ago by osimons

As far as my testing goes I cannot see anything wrong when using current trunk and a fresh Trac 0.11.4+. If anyone has details/example of something that does not return expected value, please add it. If not I'll re-close the ticket again.

comment:6 Changed 5 years ago by osimons

  • Resolution set to fixed
  • Status changed from reopened to closed

Found some. #3011 and #4539 at least. Preparing a patch on #3011, so following it up there.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.