Skip to content

Commit b4a692f

Browse files
authored
fix: show session times in meeting timezone when announcing scheduling (ietf-tools#5622)
1 parent 7dbac20 commit b4a692f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

ietf/secr/meetings/views.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright The IETF Trust 2007-2019, All Rights Reserved
1+
# Copyright The IETF Trust 2007-2023, All Rights Reserved
22
# -*- coding: utf-8 -*-
33

44
import datetime
@@ -129,7 +129,7 @@ def is_combined(session,meeting,schedule=None):
129129
def send_notifications(meeting, groups, person):
130130
'''
131131
Send session scheduled email notifications for each group in groups. Person is the
132-
user who initiated this action, request.uesr.get_profile().
132+
user who initiated this action, request.user.get_profile().
133133
'''
134134
now = timezone.now()
135135
for group in groups:
@@ -150,7 +150,7 @@ def send_notifications(meeting, groups, person):
150150
t = d['timeslot']
151151
dur = s.requested_duration.seconds/60
152152
items[i]['duration'] = "%d:%02d" % (dur//60, dur%60)
153-
items[i]['period'] = '%s-%s' % (t.time.strftime('%H%M'),(t.time + t.duration).strftime('%H%M'))
153+
items[i]['period'] = f"{t.local_start_time().strftime('%H%M')}-{t.local_end_time().strftime('%H%M')} {t.tz()}"
154154

155155
# send email
156156
first_event = SchedulingEvent.objects.filter(session=sessions[0]).select_related('by').order_by('time', 'id').first()

0 commit comments

Comments
 (0)