mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-06 01:42:29 +02:00
feature 2243 added: pwg.session.getStatus returns current date (used for images.date_available field, ie database time)
git-svn-id: http://piwigo.org/svn/branches/2.2@11755 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -1719,6 +1719,10 @@ function ws_session_getStatus($params, &$service)
|
||||
}
|
||||
$res['pwg_token'] = get_pwg_token();
|
||||
$res['charset'] = get_pwg_charset();
|
||||
|
||||
list($dbnow) = pwg_db_fetch_row(pwg_query('SELECT NOW();'));
|
||||
$res['current_datetime'] = $dbnow;
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user