mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
fix autodetection for the week of the month
This commit is contained in:
parent
edc9a150aa
commit
a01a3d412c
1 changed files with 2 additions and 1 deletions
|
|
@ -683,7 +683,8 @@ class OC_Calendar_Object{
|
|||
break;
|
||||
}elseif($request['advanced_month_select'] == 'weekday'){
|
||||
if($request['weekofmonthoptions'] == 'auto'){
|
||||
$weekofmonth = floor($request['weekofmonthoptions']/7);
|
||||
list($_day, $_month, $_year) = explode('-', $from);
|
||||
$weekofmonth = floor($_day/7);
|
||||
}else{
|
||||
$weekofmonth = $request['weekofmonthoptions'];
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue