Page 1 of 1

Exception in Cookie Visitor DEMO

Posted: Mon Jan 18, 2021 1:44 am
by tad.chen
When I run Cookie Visitor DEMO in my PC, It shows EConvertError exception 'invalid argument to date encode'.

Then I debug and find the reason is that some cookie with expires like '9999-XX-XX' causes an exception in CefTimeToDateTime function.

Because the value '9999-XX-XX' after the statement "SystemTimeToTzSpecificLocalTime(nil, @TempTime, @TempTime)" will become '10000-XX-XX' in my place, which exceeds the valid value of TDateTime.

Re: Exception in Cookie Visitor DEMO

Posted: Mon Jan 18, 2021 8:44 am
by salvadordf
Thank you again! :D

I'll fix that as soon as I can.

Re: Exception in Cookie Visitor DEMO

Posted: Mon Jan 18, 2021 10:27 am
by salvadordf
It should be fixed now.

Please, download CEF4Delphi again from GitHub.