Skip to content

Commit

Permalink
fix a problem with the date overflowing display
Browse files Browse the repository at this point in the history
  • Loading branch information
jcksnvllxr80 committed Dec 6, 2021
1 parent 88468ab commit 53fdfcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@ def get_date_string(now):
month = img_utils.months_dict[now[1]]
day = str(now[2])
day_of_wk = img_utils.days_dict[now[3]]
return ''.join([day_of_wk, ', ', month, ' ', day, ', ', year])
return ''.join([day_of_wk, ', ', month, '{:2}'.format(day), ', ', year])


def get_time_tuple(now):
Expand Down

0 comments on commit 53fdfcd

Please sign in to comment.