openmrs-esm-core
openmrs-esm-core copied to clipboard
(fix) O3-2489 - toDateObjectStrict returns null if the passed string is not considered a valid date
Requirements
- [x] This PR has a title that briefly describes the work done including the ticket number. Ensure your PR title includes a conventional commit label (such as
feat,fix, orchore, among others). See existing PR titles for inspiration.
For changes to apps
- [ ] My work conforms to the O3 Styleguide and design documentation.
If applicable
- [ ] My work includes tests or is validated by existing tests.
- [ ] I have updated the esm-framework mock to reflect any API changes I have made.
Summary
This adds a custom error message to the 'toDateObjectString' when a non-valid date is passed into it as a 'omrsDateString'
Screenshots
Related Issue
https://openmrs.atlassian.net/browse/O3-2489
Other
Do not delete the PR template; fill it in. Follow the instructions. I have added the template back in and filled it in for you.
For your code, delete the comment and write some tests.
Closing this; author is not addressing feedback.
alright
On Thu, 4 Jul 2024, 00:12 Brandon Istenes, @.***> wrote:
Closing this; author is not addressing feedback.
— Reply to this email directly, view it on GitHub https://github.com/openmrs/openmrs-esm-core/pull/963#issuecomment-2207308420, or unsubscribe https://github.com/notifications/unsubscribe-auth/AJC4NIN2MSDPDMBZEOGE3RDZKRSNJAVCNFSM6AAAAABFQKE2HCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMBXGMYDQNBSGA . You are receiving this because you authored the thread.Message ID: @.***>