From: <dam...@us...> - 2004-07-16 21:07:34
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2896 Modified Files: Tag: BRANCH-1-9 tiki-calendar.php Log Message: possible fix for lost focus of day, needs testing across timezones tho Index: tiki-calendar.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-calendar.php,v retrieving revision 1.38.2.2 retrieving revision 1.38.2.3 diff -u -d -r1.38.2.2 -r1.38.2.3 --- tiki-calendar.php 8 Jul 2004 18:46:02 -0000 1.38.2.2 +++ tiki-calendar.php 16 Jul 2004 21:07:26 -0000 1.38.2.3 @@ -213,7 +213,8 @@ date("m", $focusdate), date("Y", $focusdate) ); -$focusdate = mktime(date('G'),date('i'),date('s'),$focus_month,$focus_day,$focus_year); +$focusdate = mktime(0,0,0,$focus_month,$focus_day,$focus_year); +//$focusdate = mktime(date('G'),date('i'),date('s'),$focus_month,$focus_day,$focus_year); if (isset($_REQUEST["viewmode"]) and $_REQUEST["viewmode"]) { $_SESSION['CalendarViewMode'] = $_REQUEST["viewmode"]; @@ -437,6 +438,7 @@ $z = date("z"); +// Windows requires clean dates! $focus_prevday = mktime(0, 0, 0, $focus_month, $focus_day - 1, $focus_year); $focus_nextday = mktime(0, 0, 0, $focus_month, $focus_day + 1, $focus_year); $focus_prevweek = mktime(0, 0, 0, $focus_month, $focus_day - 7, $focus_year); |