summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Unterkircher <unki@netshadow.at>2007-07-29 09:21:37 +0000
committerAndreas Unterkircher <unki@netshadow.at>2007-07-29 09:21:37 +0000
commitae6e58f6a546302b526b3345bd258d4d3e56fd02 (patch)
tree8893873a53fa9fd7e50ccd097c3bd19c05cfa860
parente785e025945eed31e47c504bb213b4150a755fbf (diff)
issue72, fixed incorrect time displayed in time selection
git-svn-id: file:///var/lib/svn/phpfspot/trunk@266 fa6a889d-dae6-447d-9e79-4ba9a3039384
-rw-r--r--phpfspot.class.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/phpfspot.class.php b/phpfspot.class.php
index 087d82f..b82fbee 100644
--- a/phpfspot.class.php
+++ b/phpfspot.class.php
@@ -115,10 +115,10 @@ class PHPFSPOT {
$_SESSION['selected_tags'] = $this->extractTags($_GET['tags']);
}
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 'showp':
@@ -1442,9 +1442,9 @@ class PHPFSPOT {
*/
private function get_calendar($mode)
{
- $year = $_SESSION[$mode .'_date'] ? date("Y", strtotime($_SESSION[$mode .'_date'])) : date("Y");
- $month = $_SESSION[$mode .'_date'] ? date("m", strtotime($_SESSION[$mode .'_date'])) : date("m");
- $day = $_SESSION[$mode .'_date'] ? date("d", strtotime($_SESSION[$mode .'_date'])) : date("d");
+ $year = $_SESSION[$mode .'_date'] ? date("Y", $_SESSION[$mode .'_date']) : date("Y");
+ $month = $_SESSION[$mode .'_date'] ? date("m", $_SESSION[$mode .'_date']) : date("m");
+ $day = $_SESSION[$mode .'_date'] ? date("d", $_SESSION[$mode .'_date']) : date("d");
$output = "<input type=\"text\" size=\"3\" id=\"". $mode ."year\" value=\"". $year ."\"";
if(!isset($_SESSION[$mode .'_date'])) $output.= " disabled=\"disabled\"";