-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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
fix: annotation modal dateRangePicker saved invalid value #13969
fix: annotation modal dateRangePicker saved invalid value #13969
Conversation
Codecov Report
@@ Coverage Diff @@
## master #13969 +/- ##
==========================================
- Coverage 78.96% 78.96% -0.01%
==========================================
Files 936 936
Lines 47409 47408 -1
Branches 5941 5940 -1
==========================================
- Hits 37438 37437 -1
Misses 9844 9844
Partials 127 127
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
@@ -311,14 +311,13 @@ const AnnotationModal: FunctionComponent<AnnotationModalProps> = ({ | |||
<span className="required">*</span> | |||
</div> | |||
<RangePicker | |||
format="YYYY-MM-DD hh:mm a" | |||
format="YYYY-MM-DD HH:mm" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should start collecting these formats in a module.
1a15e2d
to
805aef1
Compare
SUMMARY
Since moment.js cannot parse
YYY-MM-DD hh:mm a
format, an error will occur.Now we use a consistent format for saving and parsing datetime object.
closes: #13958
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
before
After
TEST PLAN
ADDITIONAL INFORMATION