mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 08:23:12 +01:00
Corrected display of next business day on small view
This commit is contained in:
parent
c823ffc3a6
commit
7c066a76e2
@ -24,12 +24,17 @@
|
|||||||
|
|
||||||
$today = $GLOBALS['phpgw']->datetime->users_localtime;
|
$today = $GLOBALS['phpgw']->datetime->users_localtime;
|
||||||
$dates = array($today);
|
$dates = array($today);
|
||||||
if(date('w',$today)=='5') // if it's Friday, show the weekend, plus Monday
|
$wday = date('w',$today);
|
||||||
|
if($wday=='5') // if it's Friday, show the weekend, plus Monday
|
||||||
{
|
{
|
||||||
$dates[] = $today + 86400; // Saturday
|
$dates[] = $today + 86400; // Saturday
|
||||||
$dates[] = $today + (2*86400); // Sunday
|
$dates[] = $today + (2*86400); // Sunday
|
||||||
}
|
}
|
||||||
$dates[] = $dates[count($dates)-1] + 86400;
|
if($wday=='6') // if it's Saturday, show Sunday, plus Monday
|
||||||
|
{
|
||||||
|
$dates[] = $today + 86400; // Sunday
|
||||||
|
}
|
||||||
|
$dates[] = $dates[count($dates)-1] + 86400; // the next business day
|
||||||
|
|
||||||
$extra_data = $GLOBALS['css']."\n"
|
$extra_data = $GLOBALS['css']."\n"
|
||||||
. '<table border="0" width="100%" cellspacing="0" cellpadding="1">'
|
. '<table border="0" width="100%" cellspacing="0" cellpadding="1">'
|
||||||
|
Loading…
Reference in New Issue
Block a user