Flask-Moment
Flask-Moment copied to clipboard
Formatting of dates and times in Flask templates using moment.js.
I'd like to format a number of seconds e.g. 150 seconds -> 00:02:30 using Flask-Moment I think this should work: ``` {{ moment().startOf('day').seconds(s).format('H:mm:ss'); }} ``` but I get an error...
I'm using jinja partials (from Mike Kennedy) and htmx to create this app for myself: https://github.com/djotaku/taskwarrior_web/tree/main I'm specifically using it here: https://github.com/djotaku/taskwarrior_web/blob/cd2c95ff7f15a7a422934fa40f37f7f3332d8560/taskwarrior_web/templates/partials/task_table.html With the flask-moment in the header of https://github.com/djotaku/taskwarrior_web/blob/cd2c95ff7f15a7a422934fa40f37f7f3332d8560/taskwarrior_web/templates/layout.html...
Bumps [flask](https://github.com/pallets/flask) from 2.0.1 to 2.3.2. Release notes Sourced from flask's releases. 2.3.2 This is a security fix release for the 2.3.x release branch. Security advisory: https://github.com/pallets/flask/security/advisories/GHSA-m2qf-hxjv-5gpq, CVE-2023-30861 Changes: https://flask.palletsprojects.com/en/2.3.x/changes/#version-2-3-2...