mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 11:48:04 +02:00
* Fix bug ID #31814, StrToDateTimeDef with FormatSettings parameter
git-svn-id: trunk@36214 -
This commit is contained in:
parent
bd9978f9cf
commit
06227c9557
@ -1433,7 +1433,12 @@ end;
|
||||
|
||||
function StrToDateTimeDef(const S: ShortString; const Defvalue : TDateTime): TDateTime;
|
||||
begin
|
||||
if not TryStrToDateTime(s,Result) Then
|
||||
Result:=StrToDateTimeDef(S,DefValue,DefaultFormatSettings);
|
||||
end;
|
||||
|
||||
function StrToDateTimeDef(const S: AnsiString; const Defvalue : TDateTime; const FormatSettings: TFormatSettings): TDateTime;
|
||||
begin
|
||||
if not TryStrToDateTime(s,Result,FormatSettings) Then
|
||||
result:=defvalue;
|
||||
end;
|
||||
|
||||
|
@ -188,6 +188,7 @@ function StrToDateDef(const S: AnsiString; const Defvalue : TDateTime; separator
|
||||
function StrToTimeDef(const S: AnsiString; const Defvalue : TDateTime): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||
function StrToTimeDef(const S: AnsiString; const Defvalue : TDateTime; separator : char): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||
function StrToDateTimeDef(const S: AnsiString; const Defvalue : TDateTime): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||
function StrToDateTimeDef(const S: AnsiString; const Defvalue : TDateTime; const FormatSettings: TFormatSettings): TDateTime; {$ifdef SYSUTILSINLINE}inline;{$endif}
|
||||
|
||||
function CurrentYear:Word;
|
||||
{ FPC Extra }
|
||||
|
Loading…
Reference in New Issue
Block a user