small fixes for the change of get_sunday_before()

This commit is contained in:
skeeter 2001-01-16 03:26:16 +00:00
parent 252ee3f160
commit fef98bc693
3 changed files with 6 additions and 8 deletions

View File

@ -38,8 +38,8 @@
$this->printer_friendly = $p_friendly;
$now = time();
$this->today = $this->splitdate($now);
// $now = time();
$this->today = $this->localdates(time());
}
function set_filter() {

View File

@ -75,9 +75,7 @@
}
$d_time = mktime(0,0,0,$m,$d,$y);
$thisdate = date("Ymd", $d_time);
$sun = $phpgw->calendar->get_sunday_before($y,$m,$d);
if ($phpgw_info["user"]["preferences"]["calendar"]["weekdaystarts"] == "Monday")
$sun += 86400;
$sun = $phpgw->calendar->get_weekday_start($y,$m,$d);
for ($i = -7; $i <= 7; $i++) {
$tsun = $sun + (3600 * 24 * 7 * $i);
$tsat = $tsun + (3600 * 24 * 6);

View File

@ -10,9 +10,9 @@
if ($phpgw_info["user"]["preferences"]["calendar"]["mainscreen_showevents"]) {
include($phpgw_info["server"]["app_inc"].'/functions.inc.php');
echo "\n".'<tr valign="top"><td><table border="0" cols="2"><tr><td align="center" width="30%" valign="top"><!-- Calendar info -->'."\n";
echo $phpgw->calendar->mini_calendar($phpgw->calendar->today["day"],$phpgw->calendar->today["month"],$phpgw->calendar->today["year"],"day.php").'</td><td align="center" width="70%">';
$now = $phpgw->calendar->splitdate(mktime (0, 0, 0, $phpgw->calendar->today["month"], $phpgw->calendar->today["day"], $phpgw->calendar->today["year"]) - ((60 * 60) * $phpgw_info["user"]["preferences"]["common"]["tz_offset"]));
echo "\n".'<tr valign="top"><td><table border="0" cols="3"><tr><td align="center" width="30%" valign="top"><!-- Calendar info -->'."\n";
echo $phpgw->calendar->mini_calendar($phpgw->calendar->today["day"],$phpgw->calendar->today["month"],$phpgw->calendar->today["year"],"day.php").'</td><td align="center">';
$now = $phpgw->calendar->gmtdate($phpgw->calendar->today["raw"]);
echo '<table border="0" width="70%" cellspacing="0" cellpadding="0"><tr><td align="center">'
. lang(date("F",$phpgw->calendar->today["raw"])).' '.$phpgw->calendar->today["day"].', '.$phpgw->calendar->today["year"].'</tr></td>'
. '<tr><td bgcolor="'.$phpgw_info["theme"]["bg_text"].'" valign="top">';