[HtmlUnit] [htmlunit:bugs] #1998 Cookie expiration data parsing wrong

RBRi via HtmlUnit-develop <[email protected]> Tue, 23 Oct 2018 18:57:51 -0000
Newsgroups gmane.comp.java.htmlunit.devel
Message-ID </p/htmlunit/bugs/1998/ee6317db424291cc965c75b127d9cedba0c5b668.bugs@htmlunit.p.sourceforge.net>
- **status**: open --> accepted
- **assigned_to**: RBRi



---

** [bugs:#1998] Cookie expiration data parsing wrong**

**Status:** accepted
**Group:** 2.33
**Created:** Tue Oct 23, 2018 01:18 AM UTC by Rural Hunter
**Last Updated:** Tue Oct 23, 2018 03:35 AM UTC
**Owner:** RBRi


Htmlunit fails to set a cookie. I checked the source and found the expiration data was parsed wrongly.
The cookie expiration string is "Sun Jan 20 2019 17:45:00 GMT+0800 (CST)". Htmlunit parses it to 0001-4-13 11:17:45 then regards it as expired. Real browser(Firefox) handles it correctly.


---

Sent from sourceforge.net because [email protected] is subscribed to https://sourceforge.net/p/htmlunit/bugs/

To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options.  Or, if this is a mailing list, you can unsubscribe from the mailing list.

_______________________________________________
HtmlUnit-develop mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/htmlunit-develop