Skip Navigation

View with date filter

This support ticket is created hace 8 años. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

This topic contains 3 respuestas, has 2 mensajes.

Last updated by Adriano hace 7 años, 11 meses.

Assigned support staff: Adriano.



I have created a view with a filter by date
wpcf-fecha-y-hora BETWEEN TODAY(), FUTURE_DAY(1)

it must display the events I've defined that happens today with the types field "fecha-y-hora". It works perfect except for a detail, It doesn't respect the UTC I have defined in the WordPress general settings: UTC-4 hours and at 8pm it understand that we are in the next day.

How can I correct it?

Thanks in advance


That's a expected behaviour, because our functions uses system's date by adodb_date(). So there is no way to use the UTC defined in WordPress settings for now.


Finally I solved it. I added in functions.php this code:


Nice! Thank you for sharing the solution with us.