Merge pull request #198 from Dahlgren/feature/logs-dates

Show logs created and modified dates in browser locale
This commit is contained in:
Björn Dahlgren 2021-07-10 14:15:27 +02:00 committed by GitHub
commit cf5bfd4cf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,8 @@
<thead>
<tr>
<th width="100%">Filename</th>
<th class="hidden-xs hidden-sm">Created</th>
<th class="hidden-xs hidden-sm">Modified</th>
<th>Size</th>
<th></th>
<th></th>

View File

@ -6,6 +6,12 @@
<%-name%>
<% } %>
</td>
<td class="hidden-xs hidden-sm" style="text-align: right; white-space: nowrap;">
<%- new Date(created).toLocaleString() %>
</td>
<td class="hidden-xs hidden-sm" style="text-align: right; white-space: nowrap;">
<%- new Date(modified).toLocaleString() %>
</td>
<td style="text-align: right; white-space: nowrap;">
<%-formattedSize%>
</td>