* Allow seconds to be empty

This commit is contained in:
michael 2020-11-05 08:51:34 +00:00
parent 1a5c3bba66
commit 07d4e4a9fe

View File

@ -2442,8 +2442,11 @@ begin
begin
lH:=StrToIntDef(Copy(AValue,P[ppHour],2),-1);
lMi:=StrToIntDef(Copy(AValue,P[ppMinute],2),-1);
lS:=StrToIntDef(Copy(AValue,P[ppSec],2),-1);
// Bug ID 37974
if (Length(AValue)>=P[ppSec]) then
lS:=StrToIntDef(Copy(AValue,P[ppSec],2),-1)
else
LS:=0;
if (Length(AValue)>=P[ppMSec]) then
lmS := StrToIntDef(Copy(AValue,P[ppMSec],3),-1);
end