summaryrefslogtreecommitdiffstats
path: root/apps/calendar/lib
diff options
context:
space:
mode:
authorGeorg Ehrke <dev@georgswebsite.de>2012-01-05 17:53:13 +0100
committerGeorg Ehrke <dev@georgswebsite.de>2012-01-05 17:53:13 +0100
commita01a3d412c9dff2f3221b0b60307026a027ae5e8 (patch)
tree2436998a88b5d089da1d6b3c3c7be273376e3a98 /apps/calendar/lib
parentedc9a150aa5cbf6898e9fadf1fdb6ba4babe8ed8 (diff)
downloadnextcloud-server-a01a3d412c9dff2f3221b0b60307026a027ae5e8.tar.gz
nextcloud-server-a01a3d412c9dff2f3221b0b60307026a027ae5e8.zip
fix autodetection for the week of the month
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'];
}