diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-01-05 17:53:13 +0100 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-01-05 17:53:13 +0100 |
commit | a01a3d412c9dff2f3221b0b60307026a027ae5e8 (patch) | |
tree | 2436998a88b5d089da1d6b3c3c7be273376e3a98 /apps/calendar/lib | |
parent | edc9a150aa5cbf6898e9fadf1fdb6ba4babe8ed8 (diff) | |
download | nextcloud-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.php | 3 |
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']; } |