LazReport, when date is null return emtpy string instead of invalid date, from Julio Jimenez Borreguero

git-svn-id: trunk@37465 -
This commit is contained in:
jesus 2012-05-30 16:35:06 +00:00
parent b390fae9c0
commit 56bf9efdff

View File

@ -8264,10 +8264,13 @@ begin
end; end;
end; end;
fmtDate: fmtDate:
if f2 = 4 then if v=0 then
Result := SysToUTF8(FormatDateTime(AFormatStr, v)) Result := '' // date is null
else else
Result := FormatDateTime(frDateFormats[f2], v); if f2 = 4 then
Result := SysToUTF8(FormatDateTime(AFormatStr, v))
else
Result := FormatDateTime(frDateFormats[f2], v);
fmtTime: fmtTime:
if f2 = 4 then if f2 = 4 then
Result := FormatDateTime(AFormatStr, v) Result := FormatDateTime(AFormatStr, v)