mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-26 09:53:20 +01:00
small fixes for the change of get_sunday_before()
This commit is contained in:
parent
252ee3f160
commit
fef98bc693
@ -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() {
|
||||
|
@ -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);
|
||||
|
@ -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">';
|
||||
|
Loading…
Reference in New Issue
Block a user