Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
merge r11755 from branch 2.2 to trunk
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/trunk@11756 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
plegall committed Jul 15, 2011
1 parent d15d220 commit 20c2300
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/ws_functions.inc.php
Expand Up @@ -1722,6 +1722,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;
}

Expand Down

0 comments on commit 20c2300

Please sign in to comment.