Fix datetime for no-script
-
Hello! If use forum without javascript (tor+no-script), NodeBB not show the datetime on post. How i can fix it?
-
That's a bit tricky, because as you surmised, we use javascript to render the relative date and time.
It could be possible to update it so that we display a rendered date (basically, the ISO date) prior to loading, but we probably didn't do that for aesthetic reasons.
Interesting problem, though.
-
@julian Hm... the datetime is work in the post with noscript if NodeBB don't have translate for you're language.
For example I do view this when javascript disable and I am use forum with my language (he is don't have a translate for topic:wrote-on).
2023-01-18T20:12:27:253Z
-
@brazzerstop I am not certain whether this shows up on all timestamps.
For awhile the behaviour was to use
<span class="timeago" title="{iso string}"></span>
But there was never anything inside the tag, so it would be empty on load.
-