mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-22 05:09:22 +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);
|
||||
If I>0 then
|
||||
begin
|
||||
if not TryStrToDate(Copy(S,1,I-1),dtdate) then
|
||||
if not TryStrToDate(Copy(S,1,I-1),dtdate,aSettings) then
|
||||
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;
|
||||
Value:=ComposeDateTime(dtdate,dttime);
|
||||
result:=true;
|
||||
end
|
||||
else
|
||||
result:=TryStrToTime(s,Value);
|
||||
result:=TryStrToTime(s,Value,aSettings);
|
||||
end
|
||||
else
|
||||
result:=TryStrToDate(s,Value);
|
||||
result:=TryStrToDate(s,Value,aSettings);
|
||||
end;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user