-
Notifications
You must be signed in to change notification settings - Fork 24.7k
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
Breaking change in 7.x.y for date format #51394
Comments
I have to add that I used java 1.8 in both cases, not the bundled java11 |
Pinging @elastic/es-search (:Search/Mapping) |
In fact, using |
Update: I realised I was using the weekyear |
@faxm0dem Just to confirm, does the code on 7.5 works as expected and this issue can be closed? |
@faxm0dem thank you for raising this. As described on that page, we are using java.time implementation for date parsing and formatting (previously using joda)
I don't know your usecase but you probably want to use
You might be also interested in https://www.elastic.co/guide/en/kibana/6.8/upgrade-assistant.html You can find more backgorund on this here https://www.elastic.co/blog/journey-support-nanosecond-timestamps-elasticsearch |
Thanks for your input, I'm closing this then |
During my upgrade from 6.8.6 to 7.5.1 I discovered that the date formats don't parse anymore.
There's a difference in how timezones are parsed (
Z
).In 6.8.6 this works:
In 7.5.1 it fails:
After some trial and error, I discovered that I needed to specify as many
Z
as tere were characters for the timezone. So this format works in 7.5.1:YYYY-MM-dd'T'HH:mm:ssZZZZZ
, but it doesn't in 6.8.6.The text was updated successfully, but these errors were encountered: