Skip to content

Commit

Permalink
Fix get_fixed_timezone
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Booij-Liewes committed Dec 18, 2024
1 parent c6eb630 commit 4515970
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion binder/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
from django.core.exceptions import ValidationError
from django.db.models.query_utils import Q
from datetime import timezone
from django.utils.timezone import get_fixed_timezone

from django.utils.translation import gettext_lazy as _
from django.utils.dateparse import parse_date, parse_datetime

Expand Down Expand Up @@ -343,7 +345,7 @@ def clean_value(self, qualifier, v):
offset = int(tzinfo[1:3]) * 60 + int(tzinfo[3:5])
if tzinfo.startswith('-'):
offset = -offset
tzinfo = timezone.get_fixed_timezone(offset)
tzinfo = get_fixed_timezone(offset)
# Create time object
return time(
hour=hour,
Expand Down

0 comments on commit 4515970

Please sign in to comment.