浏览代码

Troubleshooting log viewer: Show full date in title text (#967)

This allows you to see the absolute date by hovering over a relative
timestamp.
Danilo Bargen 5 年之前
父节点
当前提交
b0fe1e585c
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      troubleshoot/log.js

+ 2 - 2
troubleshoot/log.js

@@ -146,9 +146,9 @@ function showLog(data) {
         elements.log.appendChild(createElementFromHTML(`
             <tbody>
                 <tr class="record ${escapeHTML(type)}">
-                    <td class="date">${((timestampMs - startTimestampMs) / 1000).toFixed(3)}</td>
+                    <td class="date" title="${new Date(timestampMs)}">${((timestampMs - startTimestampMs) / 1000).toFixed(3)}</td>
                     <td class="tag">${tag}</td>
-                    <td class="message">${values.map((value) => formatRecordValue(value)).join('\n')}</td>  
+                    <td class="message">${values.map((value) => formatRecordValue(value)).join('\n')}</td>
                 </tr>
             </tbody>`));
     }