mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-16 13:49:40 +02:00
DateTimeToString: do not write #0 separators
(cherry picked from commit a55794d80d
)
This commit is contained in:
parent
0b85860a1c
commit
0826cb24f0
@ -1078,8 +1078,8 @@ var
|
||||
else
|
||||
raise EConvertError.Create('Illegal character in format string');
|
||||
end ;
|
||||
'/': StoreStr(@FormatSettings.DateSeparator, 1);
|
||||
':': StoreStr(@FormatSettings.TimeSeparator, 1);
|
||||
'/': if FormatSettings.DateSeparator<>#0 then StoreStr(@FormatSettings.DateSeparator, 1);
|
||||
':': if FormatSettings.TimeSeparator<>#0 then StoreStr(@FormatSettings.TimeSeparator, 1);
|
||||
'[': if (fdoInterval in Options) then isInterval := true else StoreStr(FormatCurrent, 1);
|
||||
']': if (fdoInterval in Options) then isInterval := false else StoreStr(FormatCurrent, 1);
|
||||
' ', 'C', 'D', 'H', 'M', 'N', 'S', 'T', 'Y', 'Z', 'F' {$IFDEF MSWindows}, 'G', 'E'{$ENDIF MSWindows} :
|
||||
|
Loading…
Reference in New Issue
Block a user