From aa3a90863483f7dc04f5c195d09672e05ac08d77 Mon Sep 17 00:00:00 2001 From: flop25 Date: Tue, 9 Aug 2011 14:29:19 +0000 Subject: bug:2383 /!\ corrected but not checked git-svn-id: http://piwigo.org/svn/trunk@11925 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/dblayer/functions_sqlite.inc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/dblayer') diff --git a/include/dblayer/functions_sqlite.inc.php b/include/dblayer/functions_sqlite.inc.php index b3b9a2c1d..5f7d14d9e 100644 --- a/include/dblayer/functions_sqlite.inc.php +++ b/include/dblayer/functions_sqlite.inc.php @@ -55,7 +55,7 @@ function pwg_db_connect($host, $user, $password, $database) } $link->createFunction('now', 'pwg_now', 0); - $link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 0); + $link->createFunction('unix_timestamp', 'pwg_unix_timestamp', 1); $link->createFunction('md5', 'md5', 1); $link->createFunction('if', 'pwg_if', 3); @@ -694,7 +694,7 @@ function pwg_now() function pwg_unix_timestamp() { - return time(); + return strtotime($strDate); } function pwg_if($expression, $value1, $value2) -- cgit v1.2.3