Profile
User profile and story timeline
回复
-
· 2022-02-28T14:23:14Zfrom datetime import datetime @app.route('/') def index( ): return render_template('index.html', current_time=datetime.utcnow( ))第一,这个模版指的是要本地化时间的模版;第二、{{ moment(post.timestamp).format('LLL') }}中的post.timestamp1 -
· 2022-02-28T14:24:02Zpost.timestamp是指发布文章时的时间戳1