Skip to content
Snippets Groups Projects
Commit d52bcb63 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #37766 by Thomas Ilsche: fixed date handling in XML-RPC backend.

parent 7a5c5b83
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -331,6 +331,7 @@ function xmlrpc_date($time) {
$xmlrpc_date->hour = date('H', $time);
$xmlrpc_date->minute = date('i', $time);
$xmlrpc_date->second = date('s', $time);
$xmlrpc_date->iso8601 = date('Ymd\TH:i:s');
}
else {
$xmlrpc_date->year = substr($time, 0, 4);
......@@ -339,8 +340,8 @@ function xmlrpc_date($time) {
$xmlrpc_date->hour = substr($time, 9, 2);
$xmlrpc_date->minute = substr($time, 12, 2);
$xmlrpc_date->second = substr($time, 15, 2);
$xmlrpc_date->iso8601 = $time;
}
$xmlrpc_date->iso8601 = $time;
return $xmlrpc_date;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment