adjusts /scrapbook time to the user's time

This commit is contained in:
Mathias DUPEUX 2025-04-15 20:10:34 +02:00
parent 15515f1bc2
commit 2366bd3189
5 changed files with 10 additions and 1 deletions

View file

@ -6,6 +6,7 @@
<link rel="stylesheet" href="{{ url_for('static', filename='base.css') }}">
<link rel="icon" type="image/png" href="{{ url_for('static', filename='favicon.png') }}" />
{% block head %}{% endblock %}
{{ moment.include_moment() }}
</head>
<body>
<div id="wrap">

View file

@ -18,7 +18,7 @@
{% else%}
<details id="{{ post.id }}">
{% endif %}
<summary>{{ post.postedAt | formatDate }}</summary>
<summary>{{ moment(post.postedAt).format('DD/MM/YYYY @ HH[h]mm') }}</summary>
<div>{{ post.text | formatContent |safe }}</div>
</details>
{% endfor %}