Explorar o código

Permitindo retornar um objeto de Date no AsJSValue do TField.

Henrique Gottardi Werlang %!s(int64=4) %!d(string=hai) anos
pai
achega
6a2412fd97
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packages/fcl-db/db.pas

+ 1 - 1
packages/fcl-db/db.pas

@@ -6938,7 +6938,7 @@ function TDateTimeField.GetAsJSValue: JSValue;
 
 begin
   Result:=GetData;
-  if Not isString(Result) then
+  if Not isString(Result) and not IsObject(Result) then
     Result:=Null;
 end;