python-babel / flask-babel

i18n and l10n support for Flask based on Babel and pytz
https://python-babel.github.io/flask-babel/
Other
432 stars 159 forks source link

Support for timestamp in dateformat #203

Open Glandos opened 1 year ago

Glandos commented 1 year ago

I am integrating https://github.com/alisaifee/flask-limiter and a RequestLimit has a timestamp instead of a datetime object. Currently, it's not possible to format timestamp directly in the template, so I have to either add a custom filter or parse the timestamp before rendering.

Is it possible to add an optional parameter timestamp defaulted to False to parse dates?