Fix no next meeting bug
This commit is contained in:
parent
2bd4acd763
commit
d5cbe21b67
2
main.py
2
main.py
|
@ -47,6 +47,8 @@ with open(location + '/lastquestion.txt') as f:
|
||||||
|
|
||||||
|
|
||||||
def format_date(datestr):
|
def format_date(datestr):
|
||||||
|
if not datestr: return 'None'
|
||||||
|
|
||||||
d = datetime.strptime(datestr, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=pytz.UTC)
|
d = datetime.strptime(datestr, '%Y-%m-%dT%H:%M:%SZ').replace(tzinfo=pytz.UTC)
|
||||||
d = d.astimezone(TIMEZONE_CALGARY)
|
d = d.astimezone(TIMEZONE_CALGARY)
|
||||||
return d.strftime('%a %b %-d, %Y %-I:%M %p')
|
return d.strftime('%a %b %-d, %Y %-I:%M %p')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user