Modify

Opened 12 years ago

Closed 9 years ago

#434 closed defect (fixed)

Translate all times to UTC

Reported by: Alec Thomas Owned by: Alec Thomas
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 Steffen Pingel 11 years ago.
Expects date object to be in UTC

Download all attachments as: .zip

Change History (7)

comment:1 Changed 11 years ago by Steffen Pingel

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 11 years ago by Steffen Pingel

Attachment: xmlrpc-utc.patch added

Expects date object to be in UTC

comment:2 Changed 11 years ago by Steffen Pingel

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 11 years ago by Alec Thomas

Resolution: fixed
Status: newclosed

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

comment:4 Changed 11 years ago by Alec Thomas

Resolution: fixed
Status: closedreopened

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

comment:5 Changed 9 years ago by Odd Simon Simonsen

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 9 years ago by Odd Simon Simonsen

Resolution: fixed
Status: reopenedclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Alec Thomas.
The resolution will be deleted.

Add Comment


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

 
Note: See TracTickets for help on using tickets.