Skip to content

Commit

Permalink
Add timezone to renewal period definition
Browse files Browse the repository at this point in the history
  • Loading branch information
aviupadhyayula committed Oct 4, 2024
1 parent 4790f3d commit b00f022
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions backend/pennclubs/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
https://docs.djangoproject.com/en/2.1/ref/settings/
"""

import datetime
import os

import dj_database_url
from django.utils import timezone


# Build paths inside the project like this: os.path.join(BASE_DIR, ...)
Expand Down Expand Up @@ -208,8 +208,12 @@
REAPPROVAL_QUEUE_OPEN = True # controls whether existing clubs can request reapproval
NEW_APPROVAL_QUEUE_OPEN = True # controls whether new clubs can request approval
RENEWAL_PERIOD = (
datetime.date(datetime.date.today().year, 8, 1),
datetime.date(datetime.date.today().year, 9, 30),
timezone.datetime(
timezone.now().year, 8, 1, tzinfo=timezone.get_default_timezone()
),
timezone.datetime(
timezone.now().year, 9, 30, tzinfo=timezone.get_default_timezone()
),
) # defines renewal period for club visibility

# File upload settings
Expand Down

0 comments on commit b00f022

Please sign in to comment.