From d48689bba83a2c69f451866ffc8cba5d45d60c0c Mon Sep 17 00:00:00 2001 From: skeeter Date: Sat, 21 Apr 2001 02:09:20 +0000 Subject: [PATCH] Fix for birthday check on home page --- addressbook/inc/hook_home.inc.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/addressbook/inc/hook_home.inc.php b/addressbook/inc/hook_home.inc.php index 8ff11bd58f..8edbb75def 100644 --- a/addressbook/inc/hook_home.inc.php +++ b/addressbook/inc/hook_home.inc.php @@ -33,12 +33,9 @@ "n_family" => "n_family", "bday" => "bday" ); - - $today = $phpgw->common->show_date(mktime(0,0,0, - $phpgw->common->show_date(time(),"m"), - $phpgw->common->show_date(time(),"d"), - $phpgw->common->show_date(time(),"Y")),"n/d" ); - //echo $today."\n"; + $now = time() - ((60 * 60) * intval($phpgw_info['user']['preferences']['common']['tz_offset'])); + $today = $phpgw->common->show_date($now,'n/d'); +// echo $today."\n"; $bdays = $c->read(0,15,$qfields,$today,'tid=n','','',$phpgw_info["user"]["account_id"]);