Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox returns 'NaN-NaN-NaN' when using module #1

Open
jasonlones opened this issue Aug 22, 2018 · 3 comments
Open

Firefox returns 'NaN-NaN-NaN' when using module #1

jasonlones opened this issue Aug 22, 2018 · 3 comments

Comments

@jasonlones
Copy link

When module is used on the Firefox browser, 'NaN-NaN-NaN' is returned from a simple calculation. RC version 8.1.20, module version 1.1.

capture1

image003

@jasonlones
Copy link
Author

Cannot replicate this issue on REDCap version 8.10.7.

@hyunjee-hale
Copy link

hyunjee-hale commented Mar 14, 2019

I am getting the same issue. The date calculated field will work when I use Internet Explorer, but not when I use Firefox. After the dates are calculated in the project using Internet Explore and I save the form, I can go into Firefox and open the record and the dates appear in the correct format.

REDCap v8.4.0

Internet Explorer

Interent Explorer - date calculated field

Firefox

Firefox - date calculated field

@bubbajdf
Copy link

bubbajdf commented Apr 3, 2019

Add the following line
$javaString .= "dateValue = dateValue.replace(/-/g,'/');";
before
$javaString .= "var date = new Date(dateValue);";
to fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants