[wp-trac] [WordPress Trac] #16495: Make iso8601_to_datetime a bit more compliant
WordPress Trac
wp-trac at lists.automattic.com
Tue Feb 8 19:37:09 UTC 2011
#16495: Make iso8601_to_datetime a bit more compliant
--------------------------+-----------------------------
Reporter: chrisscott | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.0.5
Severity: normal | Keywords:
--------------------------+-----------------------------
With a valid ISO 8601 date string with dashes in the date or decimal
fractions for seconds, this function will fail to parse it correctly. The
attached patch updates the regex to optionally accept dashes and decimal
fractions for seconds (which are ignored). It also uses a variable for the
regex since it was duplicated.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16495>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list