Page 1 of 1

Error using DateTime.UTCNow on Parameters Expressions

Posted: Wed Apr 28, 2021 6:11 pm
by Kelleni
After upgrading stimulsoft Reports for version 2021.1, I am having problems when using DateTime.UTCNow on Parameters Expressions.

When I try to execute a Query that has an expression like 'DateTime.UTCNow.AddMinutes(-60)', Stimulsoft returns to me this message:
Error UtcNow.PNG
Error UtcNow.PNG (84.78 KiB) Viewed 2066 times
It used to work on the latest version, but after the upgrade it doesn't work anymore, I don't know if I have to add any other reference on Code, or stilmulsoft has changed the whey to declare DateTime on the Paramters Expressions.

Another thing that I've noticed is that when I open the Preview, it works, the problem only happens when I Try to Execute the Query.

Re: Error using DateTime.UTCNow on Parameters Expressions

Posted: Fri Apr 30, 2021 8:26 am
by Lech Kulikowski
Hello,

We have added that task to our to-do list. We will try to fix it.

Thank you.
#3968

Re: Error using DateTime.UTCNow on Parameters Expressions

Posted: Sat May 01, 2021 10:03 pm
by Lech Kulikowski
Hello,

The issue is fixed. The fix will be available in the next release build.

Thank you.