Maybe DateTime-conversion-bug

Stephan HStephan H Germany
edited August 2013 in FastReport 4.0
Hello,

I'm not sure if this is a bug or working as intended, but it seems to me like one.

When I'm adding a TDateTime value to a report like
frxReport.AddVariable('MyCategory', 'MyName', ADate)
with
ADate := EndOfTheYear(Now)
or
ADate := EndOfTheMonth(Now)
it seems that the value is rounded wrong by FastReport.

E.g. when I add
frxReport.AddVariable('MyCategory', 'MyName', EndOfTheYear(Now))
to my report, the correct value should be 2013-12-31, but FastReport will show 2014-01-01.

I also found a workaround using the DateOf()-Function of Delphi in my program.

Maybe you should fix that behaviour.

Thanks.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.