{"action":"created","issue":{"url":"https://api.github.com/repos/hroptatyr/dateutils/issues/70","repository_url":"https://api.github.com/repos/hroptatyr/dateutils","labels_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/70/labels{/name}","comments_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/70/comments","events_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/70/events","html_url":"https://github.com/hroptatyr/dateutils/issues/70","id":294091741,"number":70,"title":"Datediff outputting 4 weeks & 5 days instead of 1 months & 2 days when","user":{"login":"scotty49","id":36097759,"avatar_url":"https://avatars1.githubusercontent.com/u/36097759?v=4","gravatar_id":"","url":"https://api.github.com/users/scotty49","html_url":"https://github.com/scotty49","followers_url":"https://api.github.com/users/scotty49/followers","following_url":"https://api.github.com/users/scotty49/following{/other_user}","gists_url":"https://api.github.com/users/scotty49/gists{/gist_id}","starred_url":"https://api.github.com/users/scotty49/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scotty49/subscriptions","organizations_url":"https://api.github.com/users/scotty49/orgs","repos_url":"https://api.github.com/users/scotty49/repos","events_url":"https://api.github.com/users/scotty49/events{/privacy}","received_events_url":"https://api.github.com/users/scotty49/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-02-03T07:30:10Z","updated_at":"2018-02-05T05:01:13Z","closed_at":null,"author_association":"NONE","body":"Seems to be a problem when the output format is set to include months, weeks & days. For example, calculating the difference between New Year's Day & the 3rd of February (33 days or 1 month & 2 days)\r\n\r\n```\r\ndatediff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f \"%m months, %w weeks & %d days\" \r\n\r\n0 months, 4 weeks & 5 days\r\n```\r\nWhen the weeks output field is removed, I get the correct result:\r\n```\r\ndatediff 2018-01-01T17:20:00 2018-02-03T18:20:00 -f \"%m months, %d days\"       \r\n    \r\n1 months, 2 days\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/hroptatyr/dateutils/issues/comments/362982169","html_url":"https://github.com/hroptatyr/dateutils/issues/70#issuecomment-362982169","issue_url":"https://api.github.com/repos/hroptatyr/dateutils/issues/70","id":362982169,"user":{"login":"hroptatyr","id":243996,"avatar_url":"https://avatars2.githubusercontent.com/u/243996?v=4","gravatar_id":"","url":"https://api.github.com/users/hroptatyr","html_url":"https://github.com/hroptatyr","followers_url":"https://api.github.com/users/hroptatyr/followers","following_url":"https://api.github.com/users/hroptatyr/following{/other_user}","gists_url":"https://api.github.com/users/hroptatyr/gists{/gist_id}","starred_url":"https://api.github.com/users/hroptatyr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hroptatyr/subscriptions","organizations_url":"https://api.github.com/users/hroptatyr/orgs","repos_url":"https://api.github.com/users/hroptatyr/repos","events_url":"https://api.github.com/users/hroptatyr/events{/privacy}","received_events_url":"https://api.github.com/users/hroptatyr/received_events","type":"User","site_admin":false},"created_at":"2018-02-05T05:01:13Z","updated_at":"2018-02-05T05:01:13Z","author_association":"OWNER","body":"Hi scotty49,\r\nthanks for the report.  Well spotted!\r\n\r\nThe current master (9aa7778d) contains a fix.\r\n"}}
{"actor":{"display_login":"hroptatyr"}}