-
-
Notifications
You must be signed in to change notification settings - Fork 412
Description
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:
HTTP-date
The date is formatted like this (today's date):
Mon, 27 Aug 2018 02:13:09 +0000
Now I will feed that date back into my code and Pendulum should parse it, but instead throws an exception:
pendulum.parsing.exceptions.ParserError: Unable to parse string [Mon, 27 Aug 2018 02:13:09 +0000]
According to the documentation which I shared the link above, the date should be formatted something like this:
Sun, 06 Nov 1994 08:49:37 GMT ; RFC 822, updated by RFC 1123
How come Pendulum produces a date format which it can't parse itself?
And is there proper support for RFC 1123 and RFC 822 in Pendulum or do I need to use something else?
Thanks for your help and guidance.