Small time formatting fix

This commit is contained in:
Jason McBrayer 2018-08-21 13:48:02 -04:00
parent 4152923ab4
commit c8b0dc66c2
1 changed files with 2 additions and 2 deletions

View File

@ -34,9 +34,9 @@ def humane_time(arg):
else:
utc = ""
if diff < timedelta(hours=6):
return arg.strftime("%a, %b %d, %Y at %I:%M %p") + utc
return arg.strftime("%a, %b %d, %Y at %-I:%M %p") + utc
elif diff < timedelta(hours=12):
return arg.strftime("%a, %b %d, %Y around %I %p") + utc
return arg.strftime("%a, %b %d, %Y around %-I %p") + utc
elif diff < timedelta(hours=36):
return arg.strftime("%a, %b %d, %Y in the ") + time_of_day(arg.hour) + utc
elif diff < timedelta(days=6*28):