danriegsecker / as3syndicationlib

Automatically exported from code.google.com/p/as3syndicationlib
0 stars 0 forks source link

DateUtil RFC822 Parses Incorrect Date #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Run the following code:
import com.adobe.utils.DateUtil;

var date:Date = DateUtil.parseRFC822("Mon, 24 Aug 2009 12:00:00 GMT");
trace(date);

What is the expected output? What do you see instead?
The output date does not match the RFC822 date specified.

What version of the product are you using? On what operating system?
.92.1 on Windows XP

Original issue reported on code.google.com by julianrw...@gmail.com on 25 Aug 2009 at 4:51

GoogleCodeExporter commented 9 years ago
Same issue here if locale is fr_FR:

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

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

Also filled a bug on as3corelib :
https://github.com/mikechambers/as3corelib/issues/163

Original comment by astronau...@gmail.com on 2 May 2011 at 8:07