Skip to content

Commit

Permalink
Fix timezone issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mprunell committed Oct 27, 2021
1 parent 615de01 commit 5da9d6a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions smallslive/events/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,8 +1094,8 @@ def is_past(self):
if self.start.hour > self.end.hour or self.start.hour == 0:
end_date = end_date + timedelta(days=1)
ny_end = datetime.combine(end_date, self.end)
ny_end = timezone.make_aware(ny_end, timezone=(timezone.get_current_timezone()))
ny_end = timezone.get_current_timezone().localize(ny_end, is_dst=False)

return ny_end <= timezone.now()

@property
Expand Down

0 comments on commit 5da9d6a

Please sign in to comment.