Opened 18 years ago
Closed 17 years ago
#3995 closed defect (bug) (fixed)
Xml-Rpc dateTime inaccurate
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.0.9 |
Component: | XML-RPC | Keywords: | has-patch needs-testing |
Focuses: | Cc: |
Description
As stated in the Xml-Rpc standard the datetime object should be <dateTime.iso8601>. Wordpress seems to only accept <datetime.iso8601> . Otherwise I get a date in 1999 or another user even 1970 (good old Unix).
Attachments (2)
Change History (19)
#2
@
18 years ago
- Milestone 2.0.10 deleted
- Resolution set to invalid
- Status changed from new to closed
We only accept dateTime.iso8601 as XML is case sensitive. Which is correct according to the spec: http://www.xmlrpc.com/spec
#5
@
18 years ago
- Keywords has-patch needs-testing added
- Owner changed from anonymous to rob1n
- Status changed from reopened to new
whilo: does my patch fix the problem for you?
#9
@
18 years ago
- Priority changed from low to normal
- Severity changed from minor to normal
I have closed #1528 as a duplicate of this as it is the same issue effectively
#10
follow-up:
↓ 11
@
18 years ago
- Milestone changed from 2.3 to 2.2
In my second patch, it's all UTC, and uses strtotime() instead for a more extensible approach.
#11
in reply to:
↑ 10
@
18 years ago
Replying to rob1n:
In my second patch, it's all UTC, and uses strtotime() instead for a more extensible approach.
I'm not convinced this is the correct approach as we now lose the timezone offset info provided in the iso8601 formatted string.
I think I prefer the first option or reuse the preg_match in iso8601_to_datetime in wp-includes/formatting.php
Same questions as in #3994. Thank you!