-
Notifications
You must be signed in to change notification settings - Fork 174
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
Error generating the document Invalid date string (12 Déc 2022) passed into 'format_datetime()' filter #282
Comments
Hey @kamz69, Thank you for reporting this. A while back, I switched to Python's from dateutil.parser import parse
parse("12 Déc 2022")
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python3.10/site-packages/dateutil/parser/_parser.py", line 1368, in parse
return DEFAULTPARSER.parse(timestr, **kwargs)
File "/usr/local/lib/python3.10/site-packages/dateutil/parser/_parser.py", line 643, in parse
raise ParserError("Unknown string format: %s", timestr)
dateutil.parser._parser.ParserError: Unknown string format: 12 Déc 2022 I get the same result with locale set to |
Hello @chrismaddalena , Very fast response 👍 |
This issue has been labeled as |
This issue is closed because it has been inactive for 14 days since being labeled |
In the report template, i added the following jinja code to get a nicer formated date :
{{ project.end_date | format_datetime("d/m/Y") }}
When the
project.end_date
is in november, there is no issue but when it is set to December (décembre in french), I got this error :I use the last version of GhostWriter.
The text was updated successfully, but these errors were encountered: