We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 711081a commit 035c257Copy full SHA for 035c257
appointment/views.py
@@ -97,8 +97,7 @@ def get_available_slots_ajax(request):
97
98
# Check if the selected_date is today and filter out past slots
99
if selected_date == date.today():
100
- # Get the current time in EDT timezone
101
- current_time_edt = datetime.now(pytz.timezone('Europe/Paris')).time()
+ current_time_edt = datetime.now(pytz.timezone(settings.TIME_ZONE)).time()
102
available_slots = [slot for slot in available_slots if convert_str_to_time(slot) > current_time_edt]
103
104
custom_data['available_slots'] = available_slots
0 commit comments