Exposed date filter adds a timezone offset in query
In Drupal 8, when creating a view with an exposed filter on a Date field (which is in date only
mode), the resulting query removes some hours based on my timezone.
I’m in the UTC+2 timezone, so a date filter of 2016-04-20
creates a query of DATE_FORMAT('2016-04-19T22:00:00', '%Y-%m-%d')
. And so, none of the nodes I want are displayed…
How to avoid that?

This article was republished from its original source.
Pixeldust is a 20-year-old web development agency specializing in Drupal and WordPress and working with clients all over the country. With our best in class capabilities, we work with small businesses and fortune 500 companies alike. Give us a call at 1(800)730-2416 and let’s talk about your project.