Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Starter code has error in fortmat_datetime function #39

Closed
MichaelJBigelow opened this issue Apr 20, 2020 · 3 comments
Closed

Starter code has error in fortmat_datetime function #39

MichaelJBigelow opened this issue Apr 20, 2020 · 3 comments

Comments

@MichaelJBigelow
Copy link

If the locale is not specified when calling babel.dates.format_datetime(), it throws the following error:
AttributeError: 'NoneType' object has no attribute 'days'

The fix on my Windows 10 machine is the following:
return babel.dates.format_datetime(date, format, locale='en')

@eli-halych
Copy link

That fixed it on my Windows 10 machine!

Jason-M456 added a commit to Jason-M456/FSND that referenced this issue Sep 16, 2020
@robinlamb
Copy link
Contributor

robinlamb commented Feb 21, 2021

I created a pull request that contains this fix, along with some other problems. #117

@SudKul
Copy link
Contributor

SudKul commented Mar 16, 2021

Fixed in the #117

@SudKul SudKul closed this as completed Mar 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants