Skip to content

Filter datetime columns#76

Open
mglenn wants to merge 2 commits into
patricklindsay:masterfrom
WhereiPark:filter_datetime_columns
Open

Filter datetime columns#76
mglenn wants to merge 2 commits into
patricklindsay:masterfrom
WhereiPark:filter_datetime_columns

Conversation

@mglenn

@mglenn mglenn commented Feb 19, 2020

Copy link
Copy Markdown

Datetime columns such as created_at were not filtering properly as the time component was being stripped when dates were sent through. Because the datetimes were stored in UTC the results were off by several hours (5 in the case of the application being in EST). This code uses the database column type rather than the filter type to determine how to construct the query.

The Time/Datetime parameter was being converted to a Date object losing the time. This code checks the column type and converts when appropriate.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant