You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I change the date when Remote debugging is turned off, I get an invalid date from my code. However, when remote debugging is on, I get a valid date and it works fine. I'm Extremely confused.
Expected Behavior
Changing the date changes it without error.
Code
//model starts off with new Date()//document_data = {current_time: new Date()}letmodel=this.state.document_data['current_time'];<DatePickerdate={model}mode="datetime"format="YYYY-MM-DD hh:mm"confirmBtnText="Confirm"cancelBtnText="Cancel"showIcon={false}onDateChange={(data)=>{console.log(newDate(data));document_data["current_time"]=newDate(data);this.setState({document_data: document_data});}}/>
Environment
react-native -v: react-native-cli: 2.0.1
node -v: v9.10.0
npm -v: 5.6.0
target platform: Android | iOS (BOTH but issue is in iOS)
operating system: Mac OSX 10.13.3
The text was updated successfully, but these errors were encountered:
This has to do with Chrome debugger being able to parse the date and the simulator not being able to. Found the answer here and you can look at the stack overflow post that is listed for more information:
Issue
When I change the date when Remote debugging is turned off, I get an invalid date from my code. However, when remote debugging is on, I get a valid date and it works fine. I'm Extremely confused.
Expected Behavior
Changing the date changes it without error.
Code
Environment
react-native -v
: react-native-cli: 2.0.1node -v
: v9.10.0npm -v
: 5.6.0target platform
: Android | iOS (BOTH but issue is in iOS)operating system
: Mac OSX 10.13.3The text was updated successfully, but these errors were encountered: