From 1ba096945f7f8c17c392d4e5229c77e73e0bc6c9 Mon Sep 17 00:00:00 2001 From: nikrou Date: Fri, 25 Jun 2010 19:43:44 +0000 Subject: Bug 1744 fixed : Incorrect use of timezone with SQLite Fixed anti-flood system. Need refactoring between each interval functions git-svn-id: http://piwigo.org/svn/trunk@6604 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/intro.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'admin/intro.php') diff --git a/admin/intro.php b/admin/intro.php index e640feedc..112d33fe1 100644 --- a/admin/intro.php +++ b/admin/intro.php @@ -126,7 +126,7 @@ if ($conf['show_newsletter_subscription']) { $php_current_timestamp = date("Y-m-d H:i:s"); $db_version = pwg_get_db_version(); -list($db_current_timestamp) = pwg_db_fetch_row(pwg_query('SELECT CURRENT_TIMESTAMP;')); +list($db_current_date) = pwg_db_fetch_row(pwg_query('SELECT now();')); $query = ' SELECT COUNT(*) @@ -215,7 +215,7 @@ $template->assign( 'U_CHECK_UPGRADE' => PHPWG_ROOT_PATH.'admin.php?action=check_upgrade', 'U_PHPINFO' => PHPWG_ROOT_PATH.'admin.php?action=phpinfo', 'PHP_DATATIME' => $php_current_timestamp, - 'DB_DATATIME' => $db_current_timestamp, + 'DB_DATATIME' => $db_current_date, ) ); -- cgit v1.2.3