Exception in Cookie Visitor DEMO

Post Reply
tad.chen
Posts: 58
Joined: Fri Jan 04, 2019 1:39 am

Exception in Cookie Visitor DEMO

Post 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.
User avatar
salvadordf
Posts: 2966
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Exception in Cookie Visitor DEMO

Post by salvadordf »

Thank you again! :D

I'll fix that as soon as I can.
User avatar
salvadordf
Posts: 2966
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: Exception in Cookie Visitor DEMO

Post by salvadordf »

It should be fixed now.

Please, download CEF4Delphi again from GitHub.
Post Reply