summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
Diffstat (limited to 'apps/calendar/lib')
-rw-r--r--apps/calendar/lib/object.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/calendar/lib/object.php b/apps/calendar/lib/object.php
index c834dad0f4b..cbb1badf802 100644
--- a/apps/calendar/lib/object.php
+++ b/apps/calendar/lib/object.php
@@ -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'];
}