membershipworks: Specify timezone in ticket price policy effective date

This commit is contained in:
Adam Goldsmith 2024-07-30 17:40:44 -04:00
parent 54b615c986
commit 508baf809c

View File

@ -705,7 +705,14 @@ class EventTicketTypeManager(models.Manager["EventTicketType"]):
# non-member ticket # non-member ticket
Q(restrict_to__isnull=True) 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) | Q(members_price=0)
) )
), ),