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

Support java.time API in <fmt:parseDate> and <fmt:formatDate> #247

Open
BalusC opened this issue Feb 24, 2023 · 1 comment
Open

Support java.time API in <fmt:parseDate> and <fmt:formatDate> #247

BalusC opened this issue Feb 24, 2023 · 1 comment

Comments

@BalusC
Copy link
Member

BalusC commented Feb 24, 2023

It's about time.

We could use type attribute to indicate the expected type. E.g. type="localDate", type="localTime", type="localDateTime", type="zonedDateTime", etc. And in case of <fmt:parseDate>, the type of the instance behind the var should depend on type attribute as well.

BalusC added a commit to BalusC/tags that referenced this issue Mar 8, 2025
BalusC added a commit to BalusC/wasp that referenced this issue Mar 8, 2025
BalusC added a commit to BalusC/tags that referenced this issue Mar 8, 2025
@BalusC
Copy link
Member Author

BalusC commented Mar 8, 2025

For the record, I used Mojarra's jakarta.faces.convert.DateTimeConverter (which I also worked on) as inspiration, especially wrt leniency and corner cases with u versus y years.

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

No branches or pull requests

1 participant