Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Range filters, date math and time_zone #9814
I've stumbled upon an issue. When specifying the
The following is part of a filters aggregation, and I expect to be given the week 4 weeks ago, starting on a
But no, after inspecting the docs that are returned, there are no documents returned between the first sunday 23:00 and monday 00:00 UTC. There are however documents returned between sunday 23:00 and monday 00:00 UTC at the end of the interval.
Is this a bug? Should not timezones be included when doing rounding in date math?
referenced this issue
Feb 23, 2015
From a first glance: the rounding in DateMathParser (which seems to be used in range filter) is not related to the TimeZoneRounding which was subject of #9790, so I was wrong in assuming the two issues are related. Seems like rounding in DateMathParser does not take into account time zone correctly.