{"action":"created","issue":{"url":"https://api.github.com/repos/tidyverse/lubridate/issues/728","repository_url":"https://api.github.com/repos/tidyverse/lubridate","labels_url":"https://api.github.com/repos/tidyverse/lubridate/issues/728/labels{/name}","comments_url":"https://api.github.com/repos/tidyverse/lubridate/issues/728/comments","events_url":"https://api.github.com/repos/tidyverse/lubridate/issues/728/events","html_url":"https://github.com/tidyverse/lubridate/issues/728","id":378114010,"node_id":"MDU6SXNzdWUzNzgxMTQwMTA=","number":728,"title":"Shift dates by x months","user":{"login":"mbacou","id":260325,"node_id":"MDQ6VXNlcjI2MDMyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/260325?v=4","gravatar_id":"","url":"https://api.github.com/users/mbacou","html_url":"https://github.com/mbacou","followers_url":"https://api.github.com/users/mbacou/followers","following_url":"https://api.github.com/users/mbacou/following{/other_user}","gists_url":"https://api.github.com/users/mbacou/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacou/subscriptions","organizations_url":"https://api.github.com/users/mbacou/orgs","repos_url":"https://api.github.com/users/mbacou/repos","events_url":"https://api.github.com/users/mbacou/events{/privacy}","received_events_url":"https://api.github.com/users/mbacou/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-11-07T02:16:19Z","updated_at":"2018-11-07T02:37:16Z","closed_at":null,"author_association":"NONE","body":"Hi, wondering whether the behavior below is by design. I would expect `2018-09-30` instead of `NA`:\r\n\r\n```r\r\nas.Date(\"2018-10-31\") - months(1)\r\n# [1] NA\r\n\r\n# But\r\nas.Date(\"2018-10-31\") - months(2)\r\n[1] \"2018-08-31\"\r\n```"},"comment":{"url":"https://api.github.com/repos/tidyverse/lubridate/issues/comments/436483615","html_url":"https://github.com/tidyverse/lubridate/issues/728#issuecomment-436483615","issue_url":"https://api.github.com/repos/tidyverse/lubridate/issues/728","id":436483615,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNjQ4MzYxNQ==","user":{"login":"mbacou","id":260325,"node_id":"MDQ6VXNlcjI2MDMyNQ==","avatar_url":"https://avatars2.githubusercontent.com/u/260325?v=4","gravatar_id":"","url":"https://api.github.com/users/mbacou","html_url":"https://github.com/mbacou","followers_url":"https://api.github.com/users/mbacou/followers","following_url":"https://api.github.com/users/mbacou/following{/other_user}","gists_url":"https://api.github.com/users/mbacou/gists{/gist_id}","starred_url":"https://api.github.com/users/mbacou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mbacou/subscriptions","organizations_url":"https://api.github.com/users/mbacou/orgs","repos_url":"https://api.github.com/users/mbacou/repos","events_url":"https://api.github.com/users/mbacou/events{/privacy}","received_events_url":"https://api.github.com/users/mbacou/received_events","type":"User","site_admin":false},"created_at":"2018-11-07T02:37:16Z","updated_at":"2018-11-07T02:37:16Z","author_association":"NONE","body":"Never mind, I figured the right approach using lubridate methods is:\r\n\r\n```r\r\nas.Date(\"2018-10-31\") - duration(1, \"months\")\r\n# [1] \"2018-09-30 14:00:00 UTC\"\r\n```"}}
{"actor":{"display_login":"mbacou"}}