issue91, also when using external url to show a photo, set correct timerange
authorAndreas Unterkircher <unki@netshadow.at>
Sat, 5 Jan 2008 14:53:53 +0000 (15:53 +0100)
committerAndreas Unterkircher <unki@netshadow.at>
Sat, 5 Jan 2008 14:53:53 +0000 (15:53 +0100)
Signed-off-by: Andreas Unterkircher <unki@netshadow.at>
phpfspot.class.php

index a14c4f6efdaa0f1341e2a18b33df2cddc8745004..0ce73936b10b8a66a62bcd7b2a07b11f92cff6cd 100644 (file)
@@ -165,10 +165,10 @@ class PHPFSPOT {
                   $_SESSION['start_action'] = 'showp';
                }
                if(isset($_GET['from_date']) && $this->isValidDate($_GET['from_date'])) {
-                  $_SESSION['from_date'] = strtotime($_GET['from_date']);
+                  $_SESSION['from_date'] = strtotime($_GET['from_date'] ." 00:00:00");
                }
                if(isset($_GET['to_date']) && $this->isValidDate($_GET['to_date'])) {
-                  $_SESSION['to_date'] = strtotime($_GET['to_date']);
+                  $_SESSION['to_date'] = strtotime($_GET['to_date'] ." 23:59:59");
                }
                break;
             case 'export':