Skip to content

Support lenient parsing for dates using AM/PM in conjunction with @DateTimeFormat #30649

New issue

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

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

Already on GitHub? # to your account

Closed
sbrannen opened this issue Jun 12, 2023 · 4 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: superseded An issue that has been superseded by another

Comments

@sbrannen
Copy link
Member

sbrannen commented Jun 12, 2023

Overview

This is a follow-up to #30185 and #33151.

When applications run on JDK 23+, Spring Framework should support lenient parsing for date/time formats that include the time period (AM or PM) -- for example, by matching leniently against a narrow non-breaking space (NNBSP) or a standard space between the hour and AM/PM declaration.

Related Resources

Related Issues

@sbrannen sbrannen added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Jun 12, 2023
@sbrannen sbrannen added this to the 6.1.x milestone Jun 12, 2023
@bclozel bclozel modified the milestones: 6.1.x, 6.2.x Dec 18, 2023
@bclozel bclozel changed the title Support lenient parsing for dates using AM/PM in conjunction with @DateTimeFormat Support lenient parsing for dates using AM/PM in conjunction with @DateTimeFormat Feb 14, 2024
@sormuras
Copy link

"Loose matching of space separators in the lenient date/time parsing mode" has been integrated into Java 23-ea+9:

See JDK-8324665 for more details.

@snicoll

This comment was marked as outdated.

@snicoll snicoll added type: task A general task and removed type: enhancement A general enhancement labels Jul 4, 2024
@snicoll

This comment was marked as outdated.

@snicoll snicoll added type: enhancement A general enhancement and removed type: task A general task labels Jul 4, 2024
@snicoll snicoll modified the milestones: 6.1.x, 6.2.x Jul 4, 2024
@sbrannen sbrannen changed the title Support lenient parsing for dates using AM/PM in conjunction with @DateTimeFormat Support lenient parsing for dates using AM/PM in conjunction with @DateTimeFormat Jul 4, 2024
@sbrannen sbrannen modified the milestones: 6.2.x, 6.2.0-M5 Jul 4, 2024
@sbrannen sbrannen self-assigned this Jul 4, 2024
sbrannen added a commit to sbrannen/spring-framework that referenced this issue Jul 5, 2024
@sbrannen sbrannen modified the milestones: 6.2.0-M5, 6.2.x Jul 10, 2024
@sbrannen
Copy link
Member Author

After experimenting with the available options in this feature branch, we decided not to provide built-in support for lenient parsing of date/time formats in conjunction with @DateTimeFormat.

Instead, we will document the options that Spring users have, and I am therefore closing this as superseded by:

@sbrannen sbrannen closed this as not planned Won't fix, can't repro, duplicate, stale Oct 19, 2024
@sbrannen sbrannen added status: superseded An issue that has been superseded by another and removed type: documentation A documentation task labels Oct 19, 2024
@sbrannen sbrannen removed this from the 6.2.x milestone Oct 19, 2024
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) status: superseded An issue that has been superseded by another
Projects
None yet
Development

No branches or pull requests

4 participants