Skip to content

Conversation

@hykw
Copy link

@hykw hykw commented Jun 27, 2016

The date header which conforms to RFC822 have to use Jan, Feb, ... for the month. In some MUA, Thunderbird for instance, cannot correctly parse the date which doesn't conforms to RFC822.

@antp
Copy link
Owner

antp commented Jul 6, 2016

From my reading of RFC833 the format string is incorrect as the %m will return the month in numerical format and the RFC states it needs to be a short month (%b).

As the formatting is supplied by the Timex module it would suggest that this should be raised against Timex.

Have I missed anything?

@hykw
Copy link
Author

hykw commented Jul 6, 2016

As the formatting is supplied by the Timex module it would suggest that this should be raised against Timex.

I'm afraid I don't understand what you mean, due to my English skill, anyway replacing %m' with%b`, like below, would also be good

Timex.format!(date, "%a, %d %b %Y %T %z", :strftime)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants