mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-12 09:15:52 +02:00
* Fix issue with ignored formatsettings, reported by Roman Kassebaum, fixes issue #39235
This commit is contained in:
parent
634acb533a
commit
2f0cc94585
@ -4416,18 +4416,18 @@ begin
|
|||||||
Dec(I);
|
Dec(I);
|
||||||
If I>0 then
|
If I>0 then
|
||||||
begin
|
begin
|
||||||
if not TryStrToDate(Copy(S,1,I-1),dtdate) then
|
if not TryStrToDate(Copy(S,1,I-1),dtdate,aSettings) then
|
||||||
exit;
|
exit;
|
||||||
if not TryStrToTime(Copy(S,i+1, Length(S)-i),dttime) then
|
if not TryStrToTime(Copy(S,i+1, Length(S)-i),dttime,aSettings) then
|
||||||
exit;
|
exit;
|
||||||
Value:=ComposeDateTime(dtdate,dttime);
|
Value:=ComposeDateTime(dtdate,dttime);
|
||||||
result:=true;
|
result:=true;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
result:=TryStrToTime(s,Value);
|
result:=TryStrToTime(s,Value,aSettings);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
result:=TryStrToDate(s,Value);
|
result:=TryStrToDate(s,Value,aSettings);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user