mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-28 04:09:56 +03:00
Bug 1738 fixed : hour function doesn't exists for database other than mysql.
git-svn-id: http://piwigo.org/svn/trunk@6578 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
f4d4a3dbcf
commit
5a677f1151
5 changed files with 22 additions and 13 deletions
|
@ -580,6 +580,11 @@ SELECT '.pwg_db_get_recent_period_expression($period);
|
|||
return $d;
|
||||
}
|
||||
|
||||
function pwg_db_get_hour($date)
|
||||
{
|
||||
return 'hour('.$date.')';
|
||||
}
|
||||
|
||||
function pwg_db_get_date_YYYYMM($date)
|
||||
{
|
||||
return 'DATE_FORMAT('.$date.', \'%Y%m\')';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue