yasoob / practical-python-projects

99 stars 42 forks source link

Typo strftime("%B %-d, %Y") #18

Closed PeterHuynh closed 3 years ago

PeterHuynh commented 3 years ago

Location Within the Book

Hint: Page numbers change all the time. The best way to report an issue is by chapter and section numbers.

Description

today = today.strftime("%B %-d, %Y")

ValueError: Invalid format string

If code-related, enter it within these backticks. Otherwise, delete this segment.
today = datetime.today().strftime("%B %-d, %Y")

Possible Solutions

today = datetime.today().strftime("%B - %d, %Y")

Your full name so I can provide accurate credit within the book

Peter Huynh

yasoob commented 3 years ago

Hey Peter, so sorry for such a delayed update. COVID had me struggling for a bit but this bug is fixed in the latest version that will go out soon. Thanks ❤️