summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-28 05:51:18 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-28 05:51:18 +0000
commit75c89a74975ca98d3329f73bc6a7d50ed7009d3d (patch)
tree00f40406f7ab81ad9cf500402d00274eaf051f59
parent8818320084e9723b958bee75c011bfcc74e3018f (diff)
issue68, fixed time-ranges for search
git-svn-id: file:///var/lib/svn/phpfspot/trunk@257 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--phpfspot.class.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index e5954ce..86235ac 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -564,8 +564,8 @@ class PHPFSPOT {
$matched_photos = Array();
if(isset($_SESSION['from_date']) && isset($_SESSION['to_date'])) {
- $from_date = strtotime($_SESSION['from_date']);
- $to_date = strtotime($_SESSION['to_date']);
+ $from_date = strtotime($_SESSION['from_date'] ." 00:00:00");
+ $to_date = strtotime($_SESSION['to_date'] ." 23:59:59");
$additional_where_cond = "
p.time>='". $from_date ."'
AND