LazReport, workaround for TimeToStr returning empty string on some locales, issue #14095

git-svn-id: trunk@20854 -
This commit is contained in:
jesus 2009-07-13 22:51:46 +00:00
parent dc662f18d4
commit 383dc804de

View File

@ -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;