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

Stimulsoft Reports.JS discussion
Post Reply
Barnaby
Posts: 27
Joined: Tue Dec 20, 2016 1:57 am

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

Post 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
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
#7803
Lech Kulikowski
Posts: 6243
Joined: Tue Mar 20, 2018 5:34 am

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

Post by Lech Kulikowski »

Hello,

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

Thank you.
Post Reply