Skip to content
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

Replace simple date format by date time formatter #3483

Open
wants to merge 2 commits into
base: 3.x
Choose a base branch
from

Conversation

joel-costigliola
Copy link
Member

Fix #3482

The only bit that was not addressed is the lenient parsing, this is why the tests are failing.

At least we are now supporting nanos, ex:

Date date = Date.from(Instant.parse("1970-01-01T00:00:00.000000001Z"));
assertThat(date).isEqualTo("1970-01-01T00:00:00.000000001Z");

Not supporting lenient date parsing is breaking change, probably one we can remove in AssertJ 4 since it's not a great idea to accept date like 2001-01-34 anyway.

…TE_TIME, ISO_LOCAL_DATE_TIME, ISO_LOCAL_DATE DateTimeFormatter and Timestamp parsing as supported by Timestamp.valueOf(String).

Fix #3482
Copy link

Qodana Community for JVM

It seems all right 👌

No new problems were found according to the checks applied

💡 Qodana analysis was run in the pull request mode: only the changed files were checked
☁️ View the detailed Qodana report

Contact Qodana team

Contact us at [email protected]

@scordio scordio modified the milestones: 3.26.0, 3.27.0 May 24, 2024
@scordio scordio force-pushed the 3.x branch 2 times, most recently from 301ca01 to c730d18 Compare June 1, 2024 16:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Evaluate DateTimeFormatter as replacement of SimpleDateFormat for internal usage
2 participants