Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#7921 closed defect (fixed)

Invalid ISO8601 datetimes are used in the timeline and html

Reported by: trs@… Owned by: Christian Boos
Priority: normal Milestone: 0.11.3
Component: timeline Version: 0.11
Severity: normal Keywords: iso8601 datetimes
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

In the "from" query argument to the timeline view and in the title attribute of links to the timeline, datetimes are used in an invalid ISO8601 format. The title attribute in particular is useful for parsing, which seems to be why it is there (and hence validity matters).

Datetimes in these locations are currently formatted like so: YYYY-MM-DDTHH:MM:SSZ±HHMM

The ISO8601 spec specifies such a datetime should be formatted instead like: YYYY-MM-DDTHH:MM:SS±HH:MM

The "Z" after the time is used to denote a UTC timezone (offset of Zero). Combining it with an offset of another timezone does not make sense. Additionally, the spec requires a colon between the hours and minutes of the offset.

Attachments (1)

t7921-iso-8601-fixes-r7795.diff (2.2 KB ) - added by Christian Boos 15 years ago.
Fix formatting of dates when using the iso:8601 format.

Download all attachments as: .zip

Change History (4)

comment:1 by Christian Boos, 15 years ago

Milestone: 0.11.3
Owner: set to Christian Boos
Version: none0.11

Sorry, my misunderstanding. I'll fix that.

by Christian Boos, 15 years ago

Fix formatting of dates when using the iso:8601 format.

comment:2 by Christian Boos, 15 years ago

Milestone: 0.11.40.11.3

comment:3 by Christian Boos, 15 years ago

Resolution: fixed
Status: newclosed

Patch applied in r7823. Thanks for raising the issue!

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.