From 508baf809cba8c348ea290940de3c69f199bc6b6 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 30 Jul 2024 17:40:44 -0400 Subject: [PATCH] membershipworks: Specify timezone in ticket price policy effective date --- membershipworks/models.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/membershipworks/models.py b/membershipworks/models.py index 431028c..22636b8 100644 --- a/membershipworks/models.py +++ b/membershipworks/models.py @@ -705,7 +705,14 @@ class EventTicketTypeManager(models.Manager["EventTicketType"]): # non-member ticket Q(restrict_to__isnull=True) & ( - Q(event__start__lt=datetime(year=2024, month=7, day=1)) + Q( + event__start__lt=datetime( + year=2024, + month=7, + day=1, + tzinfo=timezone.get_default_timezone(), + ) + ) | Q(members_price=0) ) ),