Page 1 of 1

Node.js stimulsoft-reports-js/SQL Adapter Date issue

Posted: Fri Feb 01, 2019 5:41 am
by Barnaby
Hey,

Currently all of the Node.js SQL adapters in the Samples-JS return a ISO date string (ie Date.toISOString()) for date fields.

The ISO Date String look like this: 2019-02-01T05:17:49.400Z

In stimulsoft-reports-js, when it attempts to parse the date, the function "fromString" replaces all the full stops with a dash ( replaceAll(".", "-") ), causing it to look like this:
2019-02-01T05:17:49-400Z

Then it attempts to check to see if the date is valid using moment js, which then it doesnt make it past the checks, as its no longer a valid ISO date. Resulting in errors Parse DateTime Error.

Version of stimulsoft-reports-js

Code: Select all

Stimulsoft.Reports.JS
Version: 2019.1.1b
Build date: 2019.01.25

Re: Node.js stimulsoft-reports-js/SQL Adapter Date issue

Posted: Mon Feb 04, 2019 11:21 am
by Lech Kulikowski
Hello,

We need some time to investigate the issue. We will let you know about the result.

Thank you.
#7803

Re: Node.js stimulsoft-reports-js/SQL Adapter Date issue

Posted: Mon Feb 04, 2019 8:22 pm
by Lech Kulikowski
Hello,

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

Thank you.