How do I use format with refresh?
Closed this issue · 2 comments
ChunYuan0930 commented
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.
miguelgrinberg commented
Refresh only makes sense for relative times. When you are rendering a fixed timestamp refreshing does nothing, every refresh the same date is rendered.
ChunYuan0930 commented
OK,thanks for your reply.