razzius opened a new issue #13958: URL: https://github.com/apache/superset/issues/13958
Adding a new annotation fails because selecting a date gives "Invalid date" ### Expected results Dates are reflected in the UI field ### Actual results UI field shows "Invalid date" and calendar turns into a bunch of NaN #### Screenshots <img width="832" alt="image" src="https://user-images.githubusercontent.com/2244895/113648059-d759ec00-9640-11eb-8b9b-34271b32c3f0.png"> <img width="818" alt="image" src="https://user-images.githubusercontent.com/2244895/113648833-205e7000-9642-11eb-89fd-ebd508df4067.png"> #### How to reproduce the bug (starting with docker-compose up) 1. Go to Settings > Annotation layers 2. Click on '+ Annotation Layer' 3. Add a name, click ADD 4. Click '+ Annotation' 5. Click 'Start date' field 6. Enter any date for start and end 7. Click OK 8. Notice field says "Invalid date" and the calendar that pops up only has NaN 9. If you click ADD anyways, an error pops up with "An error occurred while creating annotations: (end_dttm) Not a valid datetime. (start_dttm) Not a valid datetime." ### Environment (please complete the following information): - superset version: f19f2c3ac884 (current master) - python version: python 3.7.9 - node.js version: 14.16.0 ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [x] I have checked the superset logs for python stacktraces and included it here as text if there are any. - [x] I have reproduced the issue with at least the latest released version of superset. - [x] I have checked the issue tracker for the same issue and I haven't found one similar. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
