mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
Patch 1424025 to adjust default for system.time format
This commit is contained in:
parent
21909451aa
commit
95152c501e
@ -928,20 +928,18 @@
|
||||
}
|
||||
*/
|
||||
|
||||
/*
|
||||
$GLOBALS['_xmlrpcs_egw_time_sig'] = array(array(xmlrpcString,xmlrpcString));
|
||||
$GLOBALS['_xmlrpcs_egw_time_doc'] = 'Returns system time based on optional format string';
|
||||
function _xmlrpcs_time($server,$m)
|
||||
{
|
||||
$format = $m->getParam(0);
|
||||
$format = $format ? $format : 'Y/m/d H:i';
|
||||
$format = $format ? $format : 'Y/m/d H:i:s';
|
||||
|
||||
return CreateObject(
|
||||
'phpgwapi.xmlrpcresp',
|
||||
CreateObject('phpgwapi.xmlrpcval', date($format,time()), 'string')
|
||||
);
|
||||
}
|
||||
*/
|
||||
|
||||
/* Add the system functions to the server map */
|
||||
$GLOBALS['_xmlrpcs_dmap'] = array(
|
||||
@ -974,7 +972,7 @@
|
||||
'function' => '_xmlrpcs_phpgw_api_version',
|
||||
'signature' => $GLOBALS['_xmlrpcs_phpgw_api_version_sig'],
|
||||
'docstring' => $GLOBALS['_xmlrpcs_phpgw_api_version_doc']
|
||||
)
|
||||
),
|
||||
/*
|
||||
'system.listApps' => array(
|
||||
'function' => '_xmlrpcs_listApps',
|
||||
@ -982,13 +980,11 @@
|
||||
'docstring' => $GLOBALS['_xmlrpcs_listApps_doc']
|
||||
),
|
||||
*/
|
||||
/*
|
||||
'system.time' => array(
|
||||
'function' => '_xmlrpcs_time',
|
||||
'signature' => $GLOBALS['_xmlrpcs_time_sig'],
|
||||
'docstring' => $GLOBALS['_xmlrpcs_time_doc']
|
||||
)
|
||||
*/
|
||||
);
|
||||
|
||||
$GLOBALS['_xmlrpc_debuginfo'] = '';
|
||||
|
Loading…
Reference in New Issue
Block a user