Exception in Cookie Visitor DEMO
Posted: Mon Jan 18, 2021 1:44 am
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.
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.