[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.96,1.97
From: |
Ralf Becker <address@hidden> |
Subject: |
[Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.96,1.97 |
Date: |
Sun, 09 Mar 2003 16:05:41 -0500 |
Update of /cvsroot/phpgroupware/calendar/inc
In directory subversions:/tmp/cvs-serv2059
Modified Files:
class.uicalendar.inc.php
Log Message:
fix for gnu-bug #136:
dates in week-selectbox are (sometimes) wrong, the endate of a week is the same
as the startdate of the next one
This is caused by changes in daylight saveing and useing midnight for the
calculation, changed it to midday
Index: class.uicalendar.inc.php
===================================================================
RCS file: /cvsroot/phpgroupware/calendar/inc/class.uicalendar.inc.php,v
retrieving revision 1.96
retrieving revision 1.97
diff -C2 -r1.96 -r1.97
*** class.uicalendar.inc.php 27 Feb 2003 22:57:54 -0000 1.96
--- class.uicalendar.inc.php 9 Mar 2003 21:05:29 -0000 1.97
***************
*** 2613,2618 ****
for ($i = -7; $i <= 7; $i++)
{
! $begin = $sun + (604800 * $i);
! $end = $begin + 604799;
$str .= '<option value="' .
$GLOBALS['phpgw']->common->show_date($begin,'Ymd') . '"'.($begin <= $thisdate
&& $end >= $thisdate?' selected':'').'>'
.
$GLOBALS['phpgw']->common->show_date($begin,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'])
. ' - '
--- 2613,2619 ----
for ($i = -7; $i <= 7; $i++)
{
! $begin = $sun + (7*24*60*60 * $i) +
12*60*60; // we use midday, that changes in daylight-saveing does not effect
us
! $end = $begin + 6*24*60*60;
! // echo "<br>$i: ".date('d.m.Y
H:i',$begin).' - '.date('d.m.Y H:i',$end);
$str .= '<option value="' .
$GLOBALS['phpgw']->common->show_date($begin,'Ymd') . '"'.($begin <= $thisdate
&& $end >= $thisdate?' selected':'').'>'
.
$GLOBALS['phpgw']->common->show_date($begin,$GLOBALS['phpgw_info']['user']['preferences']['common']['dateformat'])
. ' - '
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] CVS: calendar/inc class.uicalendar.inc.php,1.96,1.97,
Ralf Becker <address@hidden> <=