miguelgrinberg/Flask-Moment

How do I use format with refresh?

Closed this issue · 2 comments

I'm add {{ moment().format('LLL', refresh = True) }} to my template,but it can't work.
BTW,I use fromNow(no_suffix=False, refresh = True) to be successful.

Refresh only makes sense for relative times. When you are rendering a fixed timestamp refreshing does nothing, every refresh the same date is rendered.

OK,thanks for your reply.