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

Format error in the year (YYYY) #10372

Open
ffalarconj opened this issue Dec 30, 2024 · 2 comments
Open

Format error in the year (YYYY) #10372

ffalarconj opened this issue Dec 30, 2024 · 2 comments
Labels

Comments

@ffalarconj
Copy link

OrientDB Version: 3.2.36

Java Version: 23

OS: Ubuntu

Expected behavior

I hope you return to the year well

Actual behavior

The date format when the year is capitalized fails
Select sysdate().format("YYYY-MM-dd")

image

Steps to reproduce

Select sysdate().format("YYYY-MM-dd"), Select sysdate().format("yyyy-MM-dd")

@a-drop-of-tears
Copy link

image

@tglman
Copy link
Member

tglman commented Jan 3, 2025

@ffalarconj

we follow java formatting rules you can find them here: https://docs.oracle.com/javase/8/docs/api/java/time/format/DateTimeFormatter.html the Y has a different meaning of y.

@tglman tglman added the question label Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

3 participants