{"action":"opened","issue":{"url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1333","repository_url":"https://api.github.com/repos/briannesbitt/Carbon","labels_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1333/labels{/name}","comments_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1333/comments","events_url":"https://api.github.com/repos/briannesbitt/Carbon/issues/1333/events","html_url":"https://github.com/briannesbitt/Carbon/issues/1333","id":327592630,"number":1333,"title":"Carbon is returning a wrong date? Laravel 5.6","user":{"login":"LaravDev","id":35145882,"avatar_url":"https://avatars2.githubusercontent.com/u/35145882?v=4","gravatar_id":"","url":"https://api.github.com/users/LaravDev","html_url":"https://github.com/LaravDev","followers_url":"https://api.github.com/users/LaravDev/followers","following_url":"https://api.github.com/users/LaravDev/following{/other_user}","gists_url":"https://api.github.com/users/LaravDev/gists{/gist_id}","starred_url":"https://api.github.com/users/LaravDev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LaravDev/subscriptions","organizations_url":"https://api.github.com/users/LaravDev/orgs","repos_url":"https://api.github.com/users/LaravDev/repos","events_url":"https://api.github.com/users/LaravDev/events{/privacy}","received_events_url":"https://api.github.com/users/LaravDev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-30T06:40:31Z","updated_at":"2018-05-30T06:40:31Z","closed_at":null,"author_association":"NONE","body":"\r\n0\r\ndown vote\r\nfavorite\r\nI'm facing a really weird issue with Carbon in laravel... i'm trying to get a specific date like this:\r\n\r\n```\r\n$now = Carbon::now()->setTimezone('America/Costa_Rica');\r\n$currentYear = $now->copy()->year;\r\n$febmon = $now->copy()->month(2)->startOfMonth();\r\ndd($febmon);\r\n```\r\n\r\nIt's supposed to return: `2018-02-01 00:00:00.0 America/Costa_Rica (-06:00)`\r\n\r\nBut instead i'm getting this: `2018-03-01 00:00:00.0 America/Costa_Rica (-06:00)`\r\n\r\nI have already tried with all other month numbers, and works perfect but February... no idea what is wrong. Thanks in advance"}}
{"actor":{"display_login":"LaravDev"}}