Skip to content

Make date filters use local time, not UTC#889

Open
jake-low wants to merge 1 commit intomainfrom
jlow/date-filters-local-time
Open

Make date filters use local time, not UTC#889
jake-low wants to merge 1 commit intomainfrom
jlow/date-filters-local-time

Conversation

@jake-low
Copy link
Contributor

This PR changes the filters page so that the selected "from" and "to" dates are interpreted in the user's local timezone, not UTC.

The backend GET /api/v1/changesets API will accept date__lte and date__gte filters with time components, but only in UTC, so the fix is to have the UI convert the selected dates to UTC timestamps (and to convert UTC timestamps from the filter URL to local time when the page loads).

I'm pretty sure this should fix #888.

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.

today is not available to filter

1 participant