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

Basic LocalDateTime support #532

Merged
merged 5 commits into from
May 17, 2022

Conversation

gregh3269
Copy link
Contributor

@gregh3269 gregh3269 commented Mar 28, 2022

Add support for LocalDateTime for the LocalDateTime.now() variant. DateTimeFormatter.ISO_LOCAL_DATE_TIME.

See WW-5175

@lukaszlenart
Copy link
Member

What's the status here? Do we still have a problem with struts.date.format?

@gregh3269
Copy link
Contributor Author

gregh3269 commented May 13, 2022

Don't think so. I did another patch (Apr 22) to remove the !"".equals(globalFormat) check, and the globalDateFormat lookup on the LocalDateTime as it will break it.

@lukaszlenart
Copy link
Member

Ok, so only tests need to be fixed

@gregh3269
Copy link
Contributor Author

ok, I will have a look.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 50.62% when pulling 70b8b30 on gregh3269:Basic_localdatetime_support into a987e31 on apache:master.

Copy link
Member

@lukaszlenart lukaszlenart left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just one suggestion

@lukaszlenart
Copy link
Member

LGTM 👍

@lukaszlenart lukaszlenart merged commit 7e91274 into apache:master May 17, 2022
@gregh3269
Copy link
Contributor Author

...maybe the formatting should be like java.sql.Timestamp, in line, as it only parses with a yyyy-mm-ddThh:mm:ss. Early days here as its a big topic.

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.

3 participants