Opened 12 years ago
Last modified 12 years ago
#10644 closed enhancement
[PATCH] Allow microseconds in parse_date() input — at Initial Version
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | low | Milestone: | 1.0 |
Component: | general | Version: | 0.13dev |
Severity: | normal | Keywords: | patch |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: |
parse_date() now optionally accepts micro-seconds in the date string |
||
Internal Changes: |
Description
The function trac.util.datefmt.parse_date() accepts ISO-8601 strings. ISO-8601 allows for fractional seconds, but parse_date() cannot handle these. Attached is a patch to remedy this - against trunk, with tests.
The change was useful for converting between the _ts used by th:XmlRpcPlugin ticket.update() and the ts used by TicketModule
Note:
See TracTickets
for help on using tickets.