diff options
author | Chocobozzz <me@florianbigard.com> | 2021-06-15 08:37:49 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-06-15 10:40:06 +0200 |
commit | 51f636ad0f928bb94069c9143e38df0518f6e4a7 (patch) | |
tree | c841250bb295b67fb2d9026388d102e08d35c975 /scripts | |
parent | e54bd458c1eec9a23730b3cc3c926568f3b02186 (diff) | |
download | PeerTube-51f636ad0f928bb94069c9143e38df0518f6e4a7.tar.gz PeerTube-51f636ad0f928bb94069c9143e38df0518f6e4a7.tar.zst PeerTube-51f636ad0f928bb94069c9143e38df0518f6e4a7.zip |
Display locale date time in parse log
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/parse-log.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/parse-log.ts b/scripts/parse-log.ts index 5f4480c88..eb3851085 100755 --- a/scripts/parse-log.ts +++ b/scripts/parse-log.ts | |||
@@ -140,7 +140,7 @@ function toTimeFormat (time: string) { | |||
140 | 140 | ||
141 | if (isNaN(timestamp) === true) return 'Unknown date' | 141 | if (isNaN(timestamp) === true) return 'Unknown date' |
142 | 142 | ||
143 | return new Date(timestamp).toISOString() | 143 | return new Date(timestamp).toLocaleString() |
144 | } | 144 | } |
145 | 145 | ||
146 | function containsTags (loggerTags: string[], optionsTags: string[]) { | 146 | function containsTags (loggerTags: string[], optionsTags: string[]) { |