{"action":"created","issue":{"url":"https://api.github.com/repos/owncloud/news/issues/982","repository_url":"https://api.github.com/repos/owncloud/news","labels_url":"https://api.github.com/repos/owncloud/news/issues/982/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/news/issues/982/comments","events_url":"https://api.github.com/repos/owncloud/news/issues/982/events","html_url":"https://github.com/owncloud/news/issues/982","id":150562322,"number":982,"title":"Published time on feeds","user":{"login":"crazy-max","id":1951866,"avatar_url":"https://avatars.githubusercontent.com/u/1951866?v=3","gravatar_id":"","url":"https://api.github.com/users/crazy-max","html_url":"https://github.com/crazy-max","followers_url":"https://api.github.com/users/crazy-max/followers","following_url":"https://api.github.com/users/crazy-max/following{/other_user}","gists_url":"https://api.github.com/users/crazy-max/gists{/gist_id}","starred_url":"https://api.github.com/users/crazy-max/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/crazy-max/subscriptions","organizations_url":"https://api.github.com/users/crazy-max/orgs","repos_url":"https://api.github.com/users/crazy-max/repos","events_url":"https://api.github.com/users/crazy-max/events{/privacy}","received_events_url":"https://api.github.com/users/crazy-max/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/owncloud/news/labels/picoFeed","name":"picoFeed","color":"c7def8"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-23T14:59:37Z","updated_at":"2016-04-23T19:18:54Z","closed_at":null,"body":"Hi,\r\n\r\nFirst of all thanks for this great app!\r\nYesterday i have migrated from Feedly to ownCloud News app.\r\nEveything seems fine except a \"problem\" with the items timestamp.\r\n\r\nFeedly seems to be based on the `<published>` feed tag and ownCloud News is based on the `<updated>` feed tag to create the item timestamp.\r\n\r\n![ownnote](https://cloud.githubusercontent.com/assets/1951866/14762157/02bb1a90-0974-11e6-8fed-a1e7f8bf994b.png)\r\n\r\n![feedly](https://cloud.githubusercontent.com/assets/1951866/14762158/05bb33ec-0974-11e6-8667-a2f90ebcb3dc.png)\r\n\r\n![rss](https://cloud.githubusercontent.com/assets/1951866/14762185/a4a50ab4-0974-11e6-8b21-fc5eeb7b098b.png)\r\n\r\nFor example on a Youtube RSS feeds channels the updated timestamp is over and over updated so the timestamp is not accurate for me (see screenshots and [this feed](https://www.youtube.com/feeds/videos.xml?channel_id=UCR4s1DE9J4DHzZYXMltSMAg))\r\n\r\nIs there an option to only display published date and not updated date in the column ?\r\n\r\nI saw a bugfix on 4.2.0 release, maybe it is related ? :\r\n> Ignore Atom updated tag if it is earlier than the published tag\r\n\r\nownCloud : 9.0.1\r\nownCloud News: 8.7.1\r\n\r\nThanks!"},"comment":{"url":"https://api.github.com/repos/owncloud/news/issues/comments/213811774","html_url":"https://github.com/owncloud/news/issues/982#issuecomment-213811774","issue_url":"https://api.github.com/repos/owncloud/news/issues/982","id":213811774,"user":{"login":"BernhardPosselt","id":195053,"avatar_url":"https://avatars.githubusercontent.com/u/195053?v=3","gravatar_id":"","url":"https://api.github.com/users/BernhardPosselt","html_url":"https://github.com/BernhardPosselt","followers_url":"https://api.github.com/users/BernhardPosselt/followers","following_url":"https://api.github.com/users/BernhardPosselt/following{/other_user}","gists_url":"https://api.github.com/users/BernhardPosselt/gists{/gist_id}","starred_url":"https://api.github.com/users/BernhardPosselt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BernhardPosselt/subscriptions","organizations_url":"https://api.github.com/users/BernhardPosselt/orgs","repos_url":"https://api.github.com/users/BernhardPosselt/repos","events_url":"https://api.github.com/users/BernhardPosselt/events{/privacy}","received_events_url":"https://api.github.com/users/BernhardPosselt/received_events","type":"User","site_admin":false},"created_at":"2016-04-23T19:18:54Z","updated_at":"2016-04-23T19:18:54Z","body":"If we have a way to distinguish between updated and published, I think it would make sense to have both. Let's first get the picofeed PR merged, then start working on the News stuff ;D\r\n\r\nSome tips:\r\n* https://github.com/owncloud/news/blob/master/db/item.php#L57 would need an updatedDate similar to pubDate\r\n* https://github.com/owncloud/news/blob/master/appinfo/database.xml#L296 is the database schema which would need an updated_date column similar to pub_date\r\n* https://github.com/owncloud/news/blob/master/fetcher/feedfetcher.php#L243 would need a setter from the picofeed api\r\n\r\nThat and maybe some unit test adjustements should be all for the server side.\r\n\r\nThese are the places where the client side date is being rendered:\r\n* https://github.com/owncloud/news/blob/master/templates/part.content.php#L59 for compact view\r\n* https://github.com/owncloud/news/blob/master/templates/part.content.php#L106 in expanded view\r\n\r\nWe'd have to think of a way to integrate this in a way that is less intrusive:\r\n* Don't show the updated date if its the same as the published date\r\n* Either replace the published with the updated date or keep the published date were it is and display the updated date maybe somewhere below the heading, like: updated 1h ago"}}