Commit e234f85b authored by Zach Osman's avatar Zach Osman
Browse files

adding datetime formatting for event date

parent cc9bfe38
......@@ -2,6 +2,7 @@
# third party imports
from bs4 import BeautifulSoup
from datetime import datetime
import requests
......@@ -104,7 +105,8 @@ def filter_data_into_days(dictlist):
if event_date in day_dict:
day_dict[event_date] = {"date": event_date, "events": [event]}
_datetime = datetime(int(event["year"]), _MONTH_DICT[event["month"]], int(event["dayofmonth"]))
day_dict[event_date] = {"date": event_date, "datetime": _datetime.isoformat(' '), "events": [event]}
day_list = []
for day in day_dict:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment