mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-08 09:05:16 +01:00
fix for proper week begin/end dates
This commit is contained in:
parent
b56691be31
commit
4d68a4ed43
@ -82,11 +82,11 @@
|
|||||||
for ($i = -7; $i <= 7; $i++) {
|
for ($i = -7; $i <= 7; $i++) {
|
||||||
$tsun = $sun + (3600 * 24 * 7 * $i);
|
$tsun = $sun + (3600 * 24 * 7 * $i);
|
||||||
$tsat = $tsun + (3600 * 24 * 6);
|
$tsat = $tsun + (3600 * 24 * 6);
|
||||||
echo "<OPTION VALUE=\"" . date("Ymd", $tsun) . "\"";
|
echo "<OPTION VALUE=\"" . $phpgw->common->show_date($tsun,"Ymd") . "\"";
|
||||||
if (date("Ymd", $tsun) <= $thisdate && date("Ymd", $tsat) >= $thisdate)
|
if ($phpgw->common->show_date($tsun,"Ymd") <= $thisdate && $phpgw->common->show_date($tsat,"Ymd") >= $thisdate)
|
||||||
echo " SELECTED";
|
echo " SELECTED";
|
||||||
echo ">" . lang(date("F",$tsun)) . strftime(" %d", $tsun) . "-"
|
echo ">" . lang($phpgw->common->show_date($tsun,"F")) . " " . $phpgw->common->show_date($tsun,"d") . "-"
|
||||||
. lang(date("F",$tsat)) . strftime(" %d", $tsat);
|
. lang($phpgw->common->show_date($tsat,"F")) . " " . $phpgw->common->show_date($tsat,"d");
|
||||||
echo "</option>\n";
|
echo "</option>\n";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
Loading…
Reference in New Issue
Block a user