]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/commitdiff
Display locale date time in parse log
authorChocobozzz <me@florianbigard.com>
Tue, 15 Jun 2021 06:37:49 +0000 (08:37 +0200)
committerChocobozzz <me@florianbigard.com>
Tue, 15 Jun 2021 08:40:06 +0000 (10:40 +0200)
scripts/parse-log.ts

index 5f4480c8827c608e0101e56940a66d5673f6e71a..eb385108592b301a20f9714619ba36b134391029 100755 (executable)
@@ -140,7 +140,7 @@ function toTimeFormat (time: string) {
 
   if (isNaN(timestamp) === true) return 'Unknown date'
 
-  return new Date(timestamp).toISOString()
+  return new Date(timestamp).toLocaleString()
 }
 
 function containsTags (loggerTags: string[], optionsTags: string[]) {