Skip to content

Commit

Permalink
Use timezone aware timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jan 10, 2024
1 parent 2662266 commit ca7435b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion phonedb/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,10 @@ def get_chart_url(force=False):
else:
years.append("")

time_range = (datetime.date(1900, 1, 1), datetime.date(year, month, 1))
time_range = (
datetime.datetime(1900, 1, 1, tzinfo=datetime.timezone.utc),
datetime.datetime(year, month, 1, tzinfo=datetime.timezone.utc),
)

supported_val = (
Phone.objects.exclude(state="deleted")
Expand Down

0 comments on commit ca7435b

Please sign in to comment.