mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 14:41:29 +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_sig'] = array(array(xmlrpcString,xmlrpcString));
|
||||||
$GLOBALS['_xmlrpcs_egw_time_doc'] = 'Returns system time based on optional format string';
|
$GLOBALS['_xmlrpcs_egw_time_doc'] = 'Returns system time based on optional format string';
|
||||||
function _xmlrpcs_time($server,$m)
|
function _xmlrpcs_time($server,$m)
|
||||||
{
|
{
|
||||||
$format = $m->getParam(0);
|
$format = $m->getParam(0);
|
||||||
$format = $format ? $format : 'Y/m/d H:i';
|
$format = $format ? $format : 'Y/m/d H:i:s';
|
||||||
|
|
||||||
return CreateObject(
|
return CreateObject(
|
||||||
'phpgwapi.xmlrpcresp',
|
'phpgwapi.xmlrpcresp',
|
||||||
CreateObject('phpgwapi.xmlrpcval', date($format,time()), 'string')
|
CreateObject('phpgwapi.xmlrpcval', date($format,time()), 'string')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
/* Add the system functions to the server map */
|
/* Add the system functions to the server map */
|
||||||
$GLOBALS['_xmlrpcs_dmap'] = array(
|
$GLOBALS['_xmlrpcs_dmap'] = array(
|
||||||
@ -974,7 +972,7 @@
|
|||||||
'function' => '_xmlrpcs_phpgw_api_version',
|
'function' => '_xmlrpcs_phpgw_api_version',
|
||||||
'signature' => $GLOBALS['_xmlrpcs_phpgw_api_version_sig'],
|
'signature' => $GLOBALS['_xmlrpcs_phpgw_api_version_sig'],
|
||||||
'docstring' => $GLOBALS['_xmlrpcs_phpgw_api_version_doc']
|
'docstring' => $GLOBALS['_xmlrpcs_phpgw_api_version_doc']
|
||||||
)
|
),
|
||||||
/*
|
/*
|
||||||
'system.listApps' => array(
|
'system.listApps' => array(
|
||||||
'function' => '_xmlrpcs_listApps',
|
'function' => '_xmlrpcs_listApps',
|
||||||
@ -982,13 +980,11 @@
|
|||||||
'docstring' => $GLOBALS['_xmlrpcs_listApps_doc']
|
'docstring' => $GLOBALS['_xmlrpcs_listApps_doc']
|
||||||
),
|
),
|
||||||
*/
|
*/
|
||||||
/*
|
|
||||||
'system.time' => array(
|
'system.time' => array(
|
||||||
'function' => '_xmlrpcs_time',
|
'function' => '_xmlrpcs_time',
|
||||||
'signature' => $GLOBALS['_xmlrpcs_time_sig'],
|
'signature' => $GLOBALS['_xmlrpcs_time_sig'],
|
||||||
'docstring' => $GLOBALS['_xmlrpcs_time_doc']
|
'docstring' => $GLOBALS['_xmlrpcs_time_doc']
|
||||||
)
|
)
|
||||||
*/
|
|
||||||
);
|
);
|
||||||
|
|
||||||
$GLOBALS['_xmlrpc_debuginfo'] = '';
|
$GLOBALS['_xmlrpc_debuginfo'] = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user