{"action":"opened","issue":{"url":"https://api.github.com/repos/fuel/core/issues/1979","repository_url":"https://api.github.com/repos/fuel/core","labels_url":"https://api.github.com/repos/fuel/core/issues/1979/labels{/name}","comments_url":"https://api.github.com/repos/fuel/core/issues/1979/comments","events_url":"https://api.github.com/repos/fuel/core/issues/1979/events","html_url":"https://github.com/fuel/core/issues/1979","id":134675825,"number":1979,"title":"Cannot get expected Date object array by Date::range_to_array when use monthly intervals","user":{"login":"wata727","id":9624059,"avatar_url":"https://avatars.githubusercontent.com/u/9624059?v=3","gravatar_id":"","url":"https://api.github.com/users/wata727","html_url":"https://github.com/wata727","followers_url":"https://api.github.com/users/wata727/followers","following_url":"https://api.github.com/users/wata727/following{/other_user}","gists_url":"https://api.github.com/users/wata727/gists{/gist_id}","starred_url":"https://api.github.com/users/wata727/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wata727/subscriptions","organizations_url":"https://api.github.com/users/wata727/orgs","repos_url":"https://api.github.com/users/wata727/repos","events_url":"https://api.github.com/users/wata727/events{/privacy}","received_events_url":"https://api.github.com/users/wata727/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-02-18T19:39:45Z","updated_at":"2016-02-18T19:39:45Z","closed_at":null,"body":"When I use monthly intervals in Date::range_to_array, I cannot get expected return value.\r\nThis is a sample tasks.\r\n\r\n```\r\n<?php\r\n\r\nnamespace Fuel\\Tasks;\r\n\r\nclass Rangearraytest\r\n{\r\n  public static function get_monthly($start_date, $end_date)\r\n  {\r\n    $start = \\Date::create_from_string($start_date, '%Y-%m-%d');\r\n    $end   = \\Date::create_from_string($end_date, '%Y-%m-%d');\r\n    $range = \\Date::range_to_array($start, $end, \"+1 month\");\r\n\r\n    foreach ($range as $r)\r\n    {\r\n      echo $r->format('%Y-%m-%d').\"\\n\";\r\n    }\r\n  }\r\n}\r\n```\r\n\r\nI hope to get the following:\r\n\r\n```\r\n% php oil r rangearraytest:get_monthly 2015-09-01 2016-02-01\r\n2015-09-01\r\n2015-10-01\r\n2015-11-01\r\n2015-12-01\r\n2016-01-01\r\n2016-02-01\r\n```\r\n\r\nBut, I got the following:\r\n\r\n```\r\n% php oil r rangearraytest:get_monthly 2015-09-01 2016-02-01\r\n2015-09-01\r\n2015-10-01\r\n2015-10-31\r\n2015-11-30\r\n2015-12-30\r\n2016-01-29\r\n```"}}