Skip to content

[8.4] Fix date rounding for date math parsing (#90458) #90633#90882

Merged
pgomulka merged 2 commits intoelastic:8.4from
pgomulka:bp_8.4_pr-90458
Oct 13, 2022
Merged

[8.4] Fix date rounding for date math parsing (#90458) #90633#90882
pgomulka merged 2 commits intoelastic:8.4from
pgomulka:bp_8.4_pr-90458

Conversation

@pgomulka
Copy link
Copy Markdown
Contributor

Backport
This will backport the following commits from main to 8.5:

#90458

…tic#90633)

in elastic#89693 the rounding logic was only applied when a field was present on a pattern. This is incorrect as for dates like "2020" we want to default to "2020-01-01T23:59:59.999..." when rounding is enabled.

This commit always applies monthOfYear or dayofMonth defaulting (when rounding enabled) except when the dayOfYear is set
closes elastic#90187

backports elastic#90458
@pgomulka
Copy link
Copy Markdown
Contributor Author

closes #90783

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant