{"action":"opened","issue":{"url":"https://api.github.com/repos/houseabsolute/DateTime.pm/issues/99","repository_url":"https://api.github.com/repos/houseabsolute/DateTime.pm","labels_url":"https://api.github.com/repos/houseabsolute/DateTime.pm/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/houseabsolute/DateTime.pm/issues/99/comments","events_url":"https://api.github.com/repos/houseabsolute/DateTime.pm/issues/99/events","html_url":"https://github.com/houseabsolute/DateTime.pm/issues/99","id":540608851,"node_id":"MDU6SXNzdWU1NDA2MDg4NTE=","number":99,"title":"Math issue with add(months) and February?","user":{"login":"francoisbeaulieu","id":12718495,"node_id":"MDQ6VXNlcjEyNzE4NDk1","avatar_url":"https://avatars2.githubusercontent.com/u/12718495?v=4","gravatar_id":"","url":"https://api.github.com/users/francoisbeaulieu","html_url":"https://github.com/francoisbeaulieu","followers_url":"https://api.github.com/users/francoisbeaulieu/followers","following_url":"https://api.github.com/users/francoisbeaulieu/following{/other_user}","gists_url":"https://api.github.com/users/francoisbeaulieu/gists{/gist_id}","starred_url":"https://api.github.com/users/francoisbeaulieu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francoisbeaulieu/subscriptions","organizations_url":"https://api.github.com/users/francoisbeaulieu/orgs","repos_url":"https://api.github.com/users/francoisbeaulieu/repos","events_url":"https://api.github.com/users/francoisbeaulieu/events{/privacy}","received_events_url":"https://api.github.com/users/francoisbeaulieu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-12-19T22:22:21Z","updated_at":"2019-12-19T22:22:21Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nTesting DateTime 1.51 on both Mac and Linux, the following code gets me the same, erroneous result:\r\n\r\n```\r\nmy $dt = DateTime->new(\r\n    year       => 2020,\r\n    month      => 1,\r\n    day        => 31,\r\n    hour       => 23,\r\n    minute     => 59,\r\n    second     => 59,\r\n    nanosecond => 000000000,\r\n    time_zone  => 'UTC',\r\n);\r\n\r\n$dt->add(months=>1);\r\nsay $dt->strftime(\"%F %T %Z\");\r\n```\r\nResults in:\r\n> 2020-03-02 23:59:59 UTC\r\n\r\nRather than February 29th. 2019 gives March 3rd, so it's not a leap year thing."}}
{"actor":{"display_login":"francoisbeaulieu"}}