mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-01 08:13:28 +02:00
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:
parent
b390fae9c0
commit
56bf9efdff
@ -8264,10 +8264,13 @@ begin
|
||||
end;
|
||||
end;
|
||||
fmtDate:
|
||||
if f2 = 4 then
|
||||
Result := SysToUTF8(FormatDateTime(AFormatStr, v))
|
||||
else
|
||||
Result := FormatDateTime(frDateFormats[f2], v);
|
||||
if v=0 then
|
||||
Result := '' // date is null
|
||||
else
|
||||
if f2 = 4 then
|
||||
Result := SysToUTF8(FormatDateTime(AFormatStr, v))
|
||||
else
|
||||
Result := FormatDateTime(frDateFormats[f2], v);
|
||||
fmtTime:
|
||||
if f2 = 4 then
|
||||
Result := FormatDateTime(AFormatStr, v)
|
||||
|
Loading…
Reference in New Issue
Block a user