In my postgresql DB reports table there is a data TIMESTAMP field data TIMESTAMP in which time is stored as 2019-01-24 05:44:04:300320 I want to get this time in its usual form, like 24.01.2019 17:44 and bring it to the Flask page . I try to do it with the help of Flask-moment

init.py

 from flask_moment import Moment app = Flask(__name__) ... moment = Moment(app) 

index.html

 report = Reports.query.all() {% for post in report %} <p>{{ moment(post.data).format('LLL') }}</p> {% endfor %} 

Then on the page I get a hidden block:

  <span class='flask-moment' data-timestamp="2019-01-24T05:44:04Z" data-format="format('LLL')" data-refresh="0" style="display:none">2019-01-24T05:44:04Z</span> 

If in the browser to make display:inline; the block is displayed with data 2019-01-24T05:44:04Z . Please tell me what the problem is, even if I make display:inline; in css display:inline; is it still not displayed? And how to make the usual time and date format?

    0