Skip to content

French locale parseRFC822 #163

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
astronaute77 opened this issue May 2, 2011 · 1 comment
Open

French locale parseRFC822 #163

astronaute77 opened this issue May 2, 2011 · 1 comment

Comments

@astronaute77
Copy link

If locale is set to "fr_FR" parseRFC822 fails.

For exemple :

trace(DateUtil.parseRFC822("Mon, 02 May 2011 08:53:37 +0200"));

outputs:

"Thu Dec 2 07:53:37 GMT+0100 2010"

@astronaute77
Copy link
Author

I think the problem is in DateUtil.getShortMonthIndex, it is locale dependent so it fails if non english locale is set.
Maybe it shouldn't be local dependent as it is intended for loading RSS feeds where the date is always in english ?

I created a fork where the locale is ignored (always english) for DateUtil.getShortMonthIndex if that can help someone:
https://github.com/astronaute/as3corelib

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

No branches or pull requests

1 participant