{"action":"created","issue":{"url":"https://api.github.com/repos/sdispater/pendulum/issues/270","repository_url":"https://api.github.com/repos/sdispater/pendulum","labels_url":"https://api.github.com/repos/sdispater/pendulum/issues/270/labels{/name}","comments_url":"https://api.github.com/repos/sdispater/pendulum/issues/270/comments","events_url":"https://api.github.com/repos/sdispater/pendulum/issues/270/events","html_url":"https://github.com/sdispater/pendulum/issues/270","id":354546471,"node_id":"MDU6SXNzdWUzNTQ1NDY0NzE=","number":270,"title":"rfc1123 issues","user":{"login":"trancee","id":1520623,"node_id":"MDQ6VXNlcjE1MjA2MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1520623?v=4","gravatar_id":"","url":"https://api.github.com/users/trancee","html_url":"https://github.com/trancee","followers_url":"https://api.github.com/users/trancee/followers","following_url":"https://api.github.com/users/trancee/following{/other_user}","gists_url":"https://api.github.com/users/trancee/gists{/gist_id}","starred_url":"https://api.github.com/users/trancee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trancee/subscriptions","organizations_url":"https://api.github.com/users/trancee/orgs","repos_url":"https://api.github.com/users/trancee/repos","events_url":"https://api.github.com/users/trancee/events{/privacy}","received_events_url":"https://api.github.com/users/trancee/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-28T02:28:57Z","updated_at":"2018-08-29T01:26:21Z","closed_at":null,"author_association":"NONE","body":"I am using *pendulum==2.0.3* and I want to return an RFC-1123 compliant date in the HTTP response headers as defined here:\r\n[HTTP-date](https://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1)\r\n\r\nThe date is formatted like this (today's date):\r\n`Mon, 27 Aug 2018 02:13:09 +0000`\r\n\r\nNow I will feed that date back into my code and Pendulum should parse it, but instead throws an exception:\r\n> pendulum.parsing.exceptions.ParserError: Unable to parse string [Mon, 27 Aug 2018 02:13:09 +0000]\r\n\r\nAccording to the documentation which I shared the link above, the date should be formatted something like this:\r\n> Sun, 06 Nov 1994 08:49:37 GMT  ; RFC 822, updated by RFC 1123\r\n\r\nHow come Pendulum produces a date format which it can't parse itself? \r\nAnd is there proper support for RFC 1123 and RFC 822 in Pendulum or do I need to use something else?\r\n\r\nThanks for your help and guidance."},"comment":{"url":"https://api.github.com/repos/sdispater/pendulum/issues/comments/416792343","html_url":"https://github.com/sdispater/pendulum/issues/270#issuecomment-416792343","issue_url":"https://api.github.com/repos/sdispater/pendulum/issues/270","id":416792343,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNjc5MjM0Mw==","user":{"login":"trancee","id":1520623,"node_id":"MDQ6VXNlcjE1MjA2MjM=","avatar_url":"https://avatars0.githubusercontent.com/u/1520623?v=4","gravatar_id":"","url":"https://api.github.com/users/trancee","html_url":"https://github.com/trancee","followers_url":"https://api.github.com/users/trancee/followers","following_url":"https://api.github.com/users/trancee/following{/other_user}","gists_url":"https://api.github.com/users/trancee/gists{/gist_id}","starred_url":"https://api.github.com/users/trancee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trancee/subscriptions","organizations_url":"https://api.github.com/users/trancee/orgs","repos_url":"https://api.github.com/users/trancee/repos","events_url":"https://api.github.com/users/trancee/events{/privacy}","received_events_url":"https://api.github.com/users/trancee/received_events","type":"User","site_admin":false},"created_at":"2018-08-29T01:26:21Z","updated_at":"2018-08-29T01:26:21Z","author_association":"NONE","body":"Thank you for the tips. I chose the second approach and that seems to be working.\r\n\r\nBut for my first question, I am still not sure. The referred specification about HTTP-date says that the timezone should be *GMT* whereas Pendulum returns *+0000*.\r\n\r\n> Mon, 27 Aug 2018 02:13:09 +0000\r\n\r\nIs it possible that Pendulumn returns *GMT* in place of *+0000* to be compliant with the standards of *rfc1123-date* and *rfc850-date*?"}}
{"actor":{"display_login":"trancee"}}