Skip to content

Commit 942c7ed

Browse files
committed
Format timestamp hover according to toLocaleString
1 parent ae56838 commit 942c7ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webroot/script/helipad.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,8 @@ $(document).ready(function () {
199199

200200
if (!messageIds.includes(boostIndex)) {
201201
let dateTime = new Date(element.time * 1000).toISOString();
202+
let localDateTime = new Date(element.time * 1000).toLocaleString();
203+
202204
$('div.nodata').remove();
203205

204206
//Build the message element
@@ -210,7 +212,7 @@ $(document).ready(function () {
210212
<a href="${appIconHref}"><img src="${appIconUrl}" title="${boostApp}" alt="${boostApp}"></a>
211213
</span>
212214
<div class="pull-right text-right">
213-
<time class="time_date" datetime="${dateTime}" title="${dateFormat(dateTime)}">
215+
<time class="time_date" datetime="${dateTime}" title="${localDateTime}">
214216
<a href="#" style="color: blue" data-toggle="modal" data-target="#boostInfo">
215217
${prettyDate(dateTime)}
216218
</a>

0 commit comments

Comments
 (0)