From 76a89555748bc25990e5d7a53b8d8cfc5a4c614e Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 21 Apr 2001 02:14:33 +0000 Subject: [PATCH] Fix for birthday check on home page- this time fixes for tomorrow. --- addressbook/inc/hook_home.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/addressbook/inc/hook_home.inc.php b/addressbook/inc/hook_home.inc.php index 8edbb75def..0046377476 100644 --- a/addressbook/inc/hook_home.inc.php +++ b/addressbook/inc/hook_home.inc.php @@ -47,11 +47,8 @@ echo "" . lang("Today is x's birthday!", $tmp) . "\n"; } - $tomorrow = $phpgw->common->show_date(mktime(0,0,0, - $phpgw->common->show_date(time(),"m"), - $phpgw->common->show_date(time(),"d")+1, - $phpgw->common->show_date(time(),"Y")),"n/d" ); - //echo $tomorrow."\n"; + $tomorrow = $phpgw->common->show_date($now + 86400,'n/d'); +// echo $tomorrow."\n"; $bdays = $c->read(0,15,$qfields,$tomorrow,'tid=n','','',$phpgw_info["user"]["account_id"]);