{"action":"created","comment":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments/49899768","id":49899768,"diff_hunk":"@@ -209,9 +211,26 @@ public void bind(FeedItem item) {\n             FeedMedia media = item.getMedia();\n \n             title.setText(item.getTitle());\n+            int format = DateUtils.FORMAT_ABBREV_ALL;\n+            if(item.publishedWithinLastYear()) {\n+                format |= DateUtils.FORMAT_NO_YEAR;\n+            }\n             String pubDateStr = DateUtils.formatDateTime(mainActivity.get(),\n-                item.getPubDate().getTime(), DateUtils.FORMAT_ABBREV_ALL);\n-            pubDate.setText(pubDateStr.replace(\" \", \"\\n\"));\n+                item.getPubDate().getTime(), format);\n+            int index = 0;\n+            if(StringUtils.countMatches(pubDateStr, ' ') == 1 || StringUtils.countMatches(pubDateStr, ' ') == 2) {","path":"app/src/main/java/de/danoeh/antennapod/adapter/QueueRecyclerAdapter.java","position":22,"original_position":22,"commit_id":"b5221dd008e876f7dcc265a6ffa92e52db9e17b3","original_commit_id":"b5221dd008e876f7dcc265a6ffa92e52db9e17b3","user":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"body":"Added this after changing the language to Chinese. It showed something like \"1 [Chinese symbol] 15 [Chinese symbol]\". Decided I don't want to mess with it and desist from any wrapping.","created_at":"2016-01-15T20:14:23Z","updated_at":"2016-01-15T20:14:23Z","html_url":"https://github.com/AntennaPod/AntennaPod/pull/1554#discussion_r49899768","pull_request_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554","_links":{"self":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments/49899768"},"html":{"href":"https://github.com/AntennaPod/AntennaPod/pull/1554#discussion_r49899768"},"pull_request":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554"}}},"pull_request":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554","id":56215793,"html_url":"https://github.com/AntennaPod/AntennaPod/pull/1554","diff_url":"https://github.com/AntennaPod/AntennaPod/pull/1554.diff","patch_url":"https://github.com/AntennaPod/AntennaPod/pull/1554.patch","issue_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1554","number":1554,"state":"open","locked":false,"title":"Pub date formatting","user":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"body":"In the first step, I made the date wrap more nicely.\r\n\r\nThe second step follows the idea that the year is not really necessary if the podcast was published within the last year.\r\nI also added some padding. Today is January 15,  2016. To not get confusing, on January 5, 2017, we will start showing the year of publication for a podcast published today.\r\n\r\n[Before, intermediate, result]\r\n![pub_date](https://cloud.githubusercontent.com/assets/6860662/12363870/7d2a7830-bbcb-11e5-9e62-ef8724e8a80b.png)\r\n","created_at":"2016-01-15T20:12:24Z","updated_at":"2016-01-15T20:14:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50cda6992aff5e9daf9b6cae935767c189ae1403","assignee":null,"milestone":{"url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/36","html_url":"https://github.com/AntennaPod/AntennaPod/milestones/1.5","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones/36/labels","id":1480355,"number":36,"title":"1.5","description":null,"creator":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2016-01-02T11:38:07Z","updated_at":"2016-01-15T20:12:24Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554/commits","review_comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554/comments","review_comment_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments{/number}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1554/comments","statuses_url":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/b5221dd008e876f7dcc265a6ffa92e52db9e17b3","head":{"label":"mfietz:pub_date_last_year","ref":"pub_date_last_year","sha":"b5221dd008e876f7dcc265a6ffa92e52db9e17b3","user":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"repo":{"id":31211688,"name":"AntennaPod","full_name":"mfietz/AntennaPod","owner":{"login":"mfietz","id":6860662,"avatar_url":"https://avatars.githubusercontent.com/u/6860662?v=3","gravatar_id":"","url":"https://api.github.com/users/mfietz","html_url":"https://github.com/mfietz","followers_url":"https://api.github.com/users/mfietz/followers","following_url":"https://api.github.com/users/mfietz/following{/other_user}","gists_url":"https://api.github.com/users/mfietz/gists{/gist_id}","starred_url":"https://api.github.com/users/mfietz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfietz/subscriptions","organizations_url":"https://api.github.com/users/mfietz/orgs","repos_url":"https://api.github.com/users/mfietz/repos","events_url":"https://api.github.com/users/mfietz/events{/privacy}","received_events_url":"https://api.github.com/users/mfietz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mfietz/AntennaPod","description":"A podcast manager for Android","fork":true,"url":"https://api.github.com/repos/mfietz/AntennaPod","forks_url":"https://api.github.com/repos/mfietz/AntennaPod/forks","keys_url":"https://api.github.com/repos/mfietz/AntennaPod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mfietz/AntennaPod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mfietz/AntennaPod/teams","hooks_url":"https://api.github.com/repos/mfietz/AntennaPod/hooks","issue_events_url":"https://api.github.com/repos/mfietz/AntennaPod/issues/events{/number}","events_url":"https://api.github.com/repos/mfietz/AntennaPod/events","assignees_url":"https://api.github.com/repos/mfietz/AntennaPod/assignees{/user}","branches_url":"https://api.github.com/repos/mfietz/AntennaPod/branches{/branch}","tags_url":"https://api.github.com/repos/mfietz/AntennaPod/tags","blobs_url":"https://api.github.com/repos/mfietz/AntennaPod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mfietz/AntennaPod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mfietz/AntennaPod/git/refs{/sha}","trees_url":"https://api.github.com/repos/mfietz/AntennaPod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mfietz/AntennaPod/statuses/{sha}","languages_url":"https://api.github.com/repos/mfietz/AntennaPod/languages","stargazers_url":"https://api.github.com/repos/mfietz/AntennaPod/stargazers","contributors_url":"https://api.github.com/repos/mfietz/AntennaPod/contributors","subscribers_url":"https://api.github.com/repos/mfietz/AntennaPod/subscribers","subscription_url":"https://api.github.com/repos/mfietz/AntennaPod/subscription","commits_url":"https://api.github.com/repos/mfietz/AntennaPod/commits{/sha}","git_commits_url":"https://api.github.com/repos/mfietz/AntennaPod/git/commits{/sha}","comments_url":"https://api.github.com/repos/mfietz/AntennaPod/comments{/number}","issue_comment_url":"https://api.github.com/repos/mfietz/AntennaPod/issues/comments{/number}","contents_url":"https://api.github.com/repos/mfietz/AntennaPod/contents/{+path}","compare_url":"https://api.github.com/repos/mfietz/AntennaPod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mfietz/AntennaPod/merges","archive_url":"https://api.github.com/repos/mfietz/AntennaPod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mfietz/AntennaPod/downloads","issues_url":"https://api.github.com/repos/mfietz/AntennaPod/issues{/number}","pulls_url":"https://api.github.com/repos/mfietz/AntennaPod/pulls{/number}","milestones_url":"https://api.github.com/repos/mfietz/AntennaPod/milestones{/number}","notifications_url":"https://api.github.com/repos/mfietz/AntennaPod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mfietz/AntennaPod/labels{/name}","releases_url":"https://api.github.com/repos/mfietz/AntennaPod/releases{/id}","created_at":"2015-02-23T14:33:44Z","updated_at":"2016-01-14T15:05:32Z","pushed_at":"2016-01-15T20:03:18Z","git_url":"git://github.com/mfietz/AntennaPod.git","ssh_url":"git@github.com:mfietz/AntennaPod.git","clone_url":"https://github.com/mfietz/AntennaPod.git","svn_url":"https://github.com/mfietz/AntennaPod","homepage":"","size":16243,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"AntennaPod:develop","ref":"develop","sha":"95bb95fc89f8e3dc32c67b8a19c3f8ecf48057aa","user":{"login":"AntennaPod","id":10713470,"avatar_url":"https://avatars.githubusercontent.com/u/10713470?v=3","gravatar_id":"","url":"https://api.github.com/users/AntennaPod","html_url":"https://github.com/AntennaPod","followers_url":"https://api.github.com/users/AntennaPod/followers","following_url":"https://api.github.com/users/AntennaPod/following{/other_user}","gists_url":"https://api.github.com/users/AntennaPod/gists{/gist_id}","starred_url":"https://api.github.com/users/AntennaPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntennaPod/subscriptions","organizations_url":"https://api.github.com/users/AntennaPod/orgs","repos_url":"https://api.github.com/users/AntennaPod/repos","events_url":"https://api.github.com/users/AntennaPod/events{/privacy}","received_events_url":"https://api.github.com/users/AntennaPod/received_events","type":"Organization","site_admin":false},"repo":{"id":5244445,"name":"AntennaPod","full_name":"AntennaPod/AntennaPod","owner":{"login":"AntennaPod","id":10713470,"avatar_url":"https://avatars.githubusercontent.com/u/10713470?v=3","gravatar_id":"","url":"https://api.github.com/users/AntennaPod","html_url":"https://github.com/AntennaPod","followers_url":"https://api.github.com/users/AntennaPod/followers","following_url":"https://api.github.com/users/AntennaPod/following{/other_user}","gists_url":"https://api.github.com/users/AntennaPod/gists{/gist_id}","starred_url":"https://api.github.com/users/AntennaPod/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AntennaPod/subscriptions","organizations_url":"https://api.github.com/users/AntennaPod/orgs","repos_url":"https://api.github.com/users/AntennaPod/repos","events_url":"https://api.github.com/users/AntennaPod/events{/privacy}","received_events_url":"https://api.github.com/users/AntennaPod/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/AntennaPod/AntennaPod","description":"A podcast manager for Android","fork":false,"url":"https://api.github.com/repos/AntennaPod/AntennaPod","forks_url":"https://api.github.com/repos/AntennaPod/AntennaPod/forks","keys_url":"https://api.github.com/repos/AntennaPod/AntennaPod/keys{/key_id}","collaborators_url":"https://api.github.com/repos/AntennaPod/AntennaPod/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/AntennaPod/AntennaPod/teams","hooks_url":"https://api.github.com/repos/AntennaPod/AntennaPod/hooks","issue_events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/events{/number}","events_url":"https://api.github.com/repos/AntennaPod/AntennaPod/events","assignees_url":"https://api.github.com/repos/AntennaPod/AntennaPod/assignees{/user}","branches_url":"https://api.github.com/repos/AntennaPod/AntennaPod/branches{/branch}","tags_url":"https://api.github.com/repos/AntennaPod/AntennaPod/tags","blobs_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/refs{/sha}","trees_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/trees{/sha}","statuses_url":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/{sha}","languages_url":"https://api.github.com/repos/AntennaPod/AntennaPod/languages","stargazers_url":"https://api.github.com/repos/AntennaPod/AntennaPod/stargazers","contributors_url":"https://api.github.com/repos/AntennaPod/AntennaPod/contributors","subscribers_url":"https://api.github.com/repos/AntennaPod/AntennaPod/subscribers","subscription_url":"https://api.github.com/repos/AntennaPod/AntennaPod/subscription","commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/commits{/sha}","git_commits_url":"https://api.github.com/repos/AntennaPod/AntennaPod/git/commits{/sha}","comments_url":"https://api.github.com/repos/AntennaPod/AntennaPod/comments{/number}","issue_comment_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/comments{/number}","contents_url":"https://api.github.com/repos/AntennaPod/AntennaPod/contents/{+path}","compare_url":"https://api.github.com/repos/AntennaPod/AntennaPod/compare/{base}...{head}","merges_url":"https://api.github.com/repos/AntennaPod/AntennaPod/merges","archive_url":"https://api.github.com/repos/AntennaPod/AntennaPod/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/AntennaPod/AntennaPod/downloads","issues_url":"https://api.github.com/repos/AntennaPod/AntennaPod/issues{/number}","pulls_url":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls{/number}","milestones_url":"https://api.github.com/repos/AntennaPod/AntennaPod/milestones{/number}","notifications_url":"https://api.github.com/repos/AntennaPod/AntennaPod/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/AntennaPod/AntennaPod/labels{/name}","releases_url":"https://api.github.com/repos/AntennaPod/AntennaPod/releases{/id}","created_at":"2012-07-31T10:25:08Z","updated_at":"2016-01-15T12:47:06Z","pushed_at":"2016-01-15T20:12:24Z","git_url":"git://github.com/AntennaPod/AntennaPod.git","ssh_url":"git@github.com:AntennaPod/AntennaPod.git","clone_url":"https://github.com/AntennaPod/AntennaPod.git","svn_url":"https://github.com/AntennaPod/AntennaPod","homepage":"","size":25253,"stargazers_count":998,"watchers_count":998,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":359,"mirror_url":null,"open_issues_count":316,"forks":359,"open_issues":316,"watchers":998,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554"},"html":{"href":"https://github.com/AntennaPod/AntennaPod/pull/1554"},"issue":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1554"},"comments":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/issues/1554/comments"},"review_comments":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554/comments"},"review_comment":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/pulls/1554/commits"},"statuses":{"href":"https://api.github.com/repos/AntennaPod/AntennaPod/statuses/b5221dd008e876f7dcc265a6ffa92e52db9e17b3"}}}}