aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-06-29 15:22:12 +0200
committerChocobozzz <me@florianbigard.com>2021-06-29 15:22:12 +0200
commited76401ecd85e3fd69bae816bf92e4492810a464 (patch)
tree630bff73b25f5d0159bad06e72100241838ff126 /scripts
parentfa1e07ca546c26f30b03be7a4822d771861d5a7a (diff)
downloadPeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.tar.gz
PeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.tar.zst
PeerTube-ed76401ecd85e3fd69bae816bf92e4492810a464.zip
Add ms to parse log dates
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/parse-log.ts3
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
148function containsTags (loggerTags: string[], optionsTags: string[]) { 149function containsTags (loggerTags: string[], optionsTags: string[]) {