GrafeasGroup / blossom

The website. The app. The everything.
6 stars 3 forks source link

Fix TimeFilter backend for timezone aware times #203

Closed TimJentzsch closed 3 years ago

TimJentzsch commented 3 years ago

Relevant issue: Closes #202.

Description:

There was a bug in the implementation of the TimeFilter backend that resulted in errors when providing timezone aware time strings as from or until parameters.

Specifically, it always used timezone.make_aware on the parsed time, which fails when the given time is already timezone aware.

Instead, the default timezone is now provided directly to the date parser.

Checklist: