mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-11-07 09:22:26 +01:00
Bug 1744 fixed : Incorrect use of timezone with SQLite
Fixed anti-flood system. Merge from trunk git-svn-id: http://piwigo.org/svn/branches/2.1@6605 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
1 parent
6394613e9f
commit
d7fa727afa
6 files changed
+28
-7
No files matched your search
@@ -546,6 +546,11 @@ function pwg_db_get_recent_period($period, $date='CURRENT_DATE')
|
||||
return $d;
|
||||
}
|
||||
|
||||
function pwg_db_get_flood_period_expression($seconds)
|
||||
{
|
||||
return 'now() - \''.$seconds.' SECOND\'::interval';
|
||||
}
|
||||
|
||||
function pwg_db_get_hour($date)
|
||||
{
|
||||
return 'EXTRACT(HOUR FROM '.$date.')';
|
||||
|
||||
Reference in new issue
Block a user