You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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')
The text was updated successfully, but these errors were encountered:
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')
The text was updated successfully, but these errors were encountered: