mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-30 21:44:06 +02: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:
@@ -544,6 +544,11 @@ function pwg_db_get_recent_period($period, $date='CURRENT_DATE')
|
||||
return $d;
|
||||
}
|
||||
|
||||
function pwg_db_get_hour($date)
|
||||
{
|
||||
return 'EXTRACT(HOUR FROM '.$date.')';
|
||||
}
|
||||
|
||||
function pwg_db_get_date_YYYYMM($date)
|
||||
{
|
||||
return 'TO_CHAR('.$date.', \'YYYYMM\')';
|
||||
|
||||
Reference in New Issue
Block a user