diff options
author | plegall <plg@piwigo.org> | 2011-07-15 19:23:53 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2011-07-15 19:23:53 +0000 |
commit | 9e0cdb76ee86688f462ffeb815a661c0b72f1ae4 (patch) | |
tree | c77fd938753bb1ebf20fa6711b70b206f1854150 /include/ws_functions.inc.php | |
parent | 386a93d8728072a49eefc50a3c035c78ce4b0680 (diff) |
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
Diffstat (limited to 'include/ws_functions.inc.php')
-rw-r--r-- | include/ws_functions.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ws_functions.inc.php b/include/ws_functions.inc.php index cc84460e2..cf4e5113d 100644 --- a/include/ws_functions.inc.php +++ b/include/ws_functions.inc.php @@ -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; } |