mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 16:56:01 +02:00
LazReport, workaround for TimeToStr returning empty string on some locales, issue #14095
git-svn-id: trunk@20854 -
This commit is contained in:
parent
dc662f18d4
commit
383dc804de
@ -7528,7 +7528,11 @@ begin
|
||||
fmtText:
|
||||
begin
|
||||
if VarIsType(v, varDate) and (trunc(Extended(v))=0) then
|
||||
Result := TimeToStr(v)
|
||||
begin
|
||||
Result := TimeToStr(v);
|
||||
if Result='' then
|
||||
Result := FormatDateTime('hh:nn:ss', v);
|
||||
end
|
||||
else
|
||||
Result := v;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user