diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-29 15:22:12 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-29 15:22:12 +0200 |
commit | ed76401ecd85e3fd69bae816bf92e4492810a464 (patch) | |
tree | 630bff73b25f5d0159bad06e72100241838ff126 /scripts/parse-log.ts | |
parent | fa1e07ca546c26f30b03be7a4822d771861d5a7a (diff) | |
download | PeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.tar.gz PeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.tar.zst PeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.zip |
Add ms to parse log dates
Diffstat (limited to 'scripts/parse-log.ts')
-rwxr-xr-x | scripts/parse-log.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index fca288dbd..c16503589 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -142,7 +142,8 @@ function toTimeFormat (time: string) { | |||
142 | 142 | ||
143 | if (isNaN(timestamp) === true) return 'Unknown date' | 143 | if (isNaN(timestamp) === true) return 'Unknown date' |
144 | 144 | ||
145 | return new Date(timestamp).toLocaleString() | 145 | const d = new Date(timestamp) |
146 | return d.toLocaleString() + `.${d.getMilliseconds()}` | ||
146 | } | 147 | } |
147 | 148 | ||
148 | function containsTags (loggerTags: string[], optionsTags: string[]) { | 149 | function containsTags (loggerTags: string[], optionsTags: string[]) { |