mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
chore(share): use locale-friendly date
This commit is contained in:
parent
8cb7dc7a7e
commit
dd6660a6cd
@ -193,9 +193,8 @@ content = content.replaceAll(headingRe, (...match) => {
|
|||||||
<div class="updated">
|
<div class="updated">
|
||||||
<%
|
<%
|
||||||
const lastUpdated = new Date(note.utcDateModified);
|
const lastUpdated = new Date(note.utcDateModified);
|
||||||
const dateString = lastUpdated.toDateString();
|
|
||||||
%>
|
%>
|
||||||
Last updated on <time datetime="<%- lastUpdated.toISOString() %>"><%- dateString.substring(4) %></time>
|
Last updated on <time datetime="<%- lastUpdated.toISOString() %>"><%- lastUpdated.toLocaleDateString() %></time>
|
||||||
</div>
|
</div>
|
||||||
<% } %>
|
<% } %>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user