We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f827eca commit 7fd8a5aCopy full SHA for 7fd8a5a
packages/app-frontend/src/filters.js
@@ -13,7 +13,7 @@ const specialTypeRE = /^\[native (\w+) (.*)\]$/
13
14
export function formatTime (timestamp, format) {
15
const date = new Date(timestamp)
16
- return `${date.toString().match(/\d\d:\d\d:\d\d/)[0]}${format === 'ms' ? '.' + date.getMilliseconds() : ''}`
+ return `${date.toString().match(/\d\d:\d\d:\d\d/)[0]}${format === 'ms' ? '.' + String(date.getMilliseconds()).padStart(3, '0') : ''}`
17
}
18
19
export function valueType (value) {
0 commit comments