From 7b568df3ede02a3d478dbce615888dfd047ca87f Mon Sep 17 00:00:00 2001
From: Henrik Levkowetz <henrik@levkowetz.com>
Date: Wed, 1 Jul 2020 11:34:39 +0000
Subject: [PATCH] Added a guard against trying to serialize session UTC start
 time for a meeting with unknown timezone.  - Legacy-Id: 18112

---
 ietf/meeting/views.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ietf/meeting/views.py b/ietf/meeting/views.py
index e8393d6a5..d15222900 100644
--- a/ietf/meeting/views.py
+++ b/ietf/meeting/views.py
@@ -1416,7 +1416,9 @@ def agenda_json(request, num=None ):
             sessdict['agenda_note'] = asgn.session.agenda_note
         if asgn.session.remote_instructions:
             sessdict['remote_instructions'] = asgn.session.remote_instructions
-        sessdict['start'] = asgn.timeslot.utc_start_time().strftime("%Y-%m-%dT%H:%M:%SZ")
+        utc_start = asgn.timeslot.utc_start_time()
+        if utc_start:
+            sessdict['start'] = utc_start.strftime("%Y-%m-%dT%H:%M:%SZ")
         sessdict['duration'] = str(asgn.timeslot.duration)
         sessdict['location'] = asgn.room_name
         if asgn.timeslot.location:      # Some socials have an assignment but no location