forked from extern/egroupware
Fix for the birthday check.
This commit is contained in:
parent
5096f163b2
commit
8bc4d7f5da
@ -34,7 +34,7 @@
|
|||||||
"bday" => "bday"
|
"bday" => "bday"
|
||||||
);
|
);
|
||||||
$now = time() - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset']));
|
$now = time() - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset']));
|
||||||
$today = $phpgw->common->show_date($now,'n/d');
|
$today = $phpgw->common->show_date($now,'n/d/');
|
||||||
// echo $today."\n";
|
// echo $today."\n";
|
||||||
|
|
||||||
$bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]);
|
$bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]);
|
||||||
@ -47,7 +47,7 @@
|
|||||||
echo "<tr><td align=\"left\">" . lang("Today is x's birthday!", $tmp) . "</td></tr>\n";
|
echo "<tr><td align=\"left\">" . lang("Today is x's birthday!", $tmp) . "</td></tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
$tomorrow = $phpgw->common->show_date($now + 86400,'n/d');
|
$tomorrow = $phpgw->common->show_date($now + 86400,'n/d/');
|
||||||
// echo $tomorrow."\n";
|
// echo $tomorrow."\n";
|
||||||
|
|
||||||
$bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$phpgw_info["user"]["account_id"]);
|
$bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$phpgw_info["user"]["account_id"]);
|
||||||
|
Loading…
Reference in New Issue
Block a user