fix: display dates in Europe/Moscow timezone + bump 0.4.8
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ipwhitelist",
|
"name": "ipwhitelist",
|
||||||
"version": "0.4.7",
|
"version": "0.4.8",
|
||||||
"description": "IP WhiteList microservice for cloud provider",
|
"description": "IP WhiteList microservice for cloud provider",
|
||||||
"main": "server.js",
|
"main": "server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
+1
-1
@@ -134,7 +134,7 @@
|
|||||||
<td style="white-space:nowrap;color:var(--muted);">
|
<td style="white-space:nowrap;color:var(--muted);">
|
||||||
<%= new Date(r.created_at).toLocaleString('ru', {
|
<%= new Date(r.created_at).toLocaleString('ru', {
|
||||||
day: '2-digit', month: '2-digit', year: 'numeric',
|
day: '2-digit', month: '2-digit', year: 'numeric',
|
||||||
hour: '2-digit', minute: '2-digit'
|
hour: '2-digit', minute: '2-digit', timeZone: 'Europe/Moscow'
|
||||||
}) %>
|
}) %>
|
||||||
</td>
|
</td>
|
||||||
<td><%= r.user_email %></td>
|
<td><%= r.user_email %></td>
|
||||||
|
|||||||
+2
-2
@@ -283,11 +283,11 @@
|
|||||||
<td><code><%= e.value_cidr %></code></td>
|
<td><code><%= e.value_cidr %></code></td>
|
||||||
<td><%= e.comment || '—' %></td>
|
<td><%= e.comment || '—' %></td>
|
||||||
<td><%= e.created_by %></td>
|
<td><%= e.created_by %></td>
|
||||||
<td><%= new Date(e.created_at).toLocaleDateString('ru', {day:'numeric',month:'short',year:'numeric',hour:'2-digit',minute:'2-digit'}) %></td>
|
<td><%= new Date(e.created_at).toLocaleDateString('ru', {day:'numeric',month:'short',year:'numeric',hour:'2-digit',minute:'2-digit',timeZone:'Europe/Moscow'}) %></td>
|
||||||
<!-- Дата последнего редактирования (null если не менялась) -->
|
<!-- Дата последнего редактирования (null если не менялась) -->
|
||||||
<td style="color:var(--muted);font-size:.8rem;">
|
<td style="color:var(--muted);font-size:.8rem;">
|
||||||
<%= e.updated_at
|
<%= e.updated_at
|
||||||
? new Date(e.updated_at).toLocaleDateString('ru', {day:'numeric',month:'short',hour:'2-digit',minute:'2-digit'})
|
? new Date(e.updated_at).toLocaleDateString('ru', {day:'numeric',month:'short',hour:'2-digit',minute:'2-digit',timeZone:'Europe/Moscow'})
|
||||||
: '—' %>
|
: '—' %>
|
||||||
</td>
|
</td>
|
||||||
<td class="text-center" style="white-space:nowrap;">
|
<td class="text-center" style="white-space:nowrap;">
|
||||||
|
|||||||
Reference in New Issue
Block a user