loghelper: Fix a bug when parsing a JSON-parsed record. In those cases the time is not Date format and needs to be parsed beforehand.
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
All checks were successful
continuous-integration/appveyor/branch AppVeyor build succeeded
package: Release new version
This commit is contained in:
parent
455f667e88
commit
e853474cdd
2 changed files with 4 additions and 2 deletions
|
@ -68,8 +68,10 @@ export function formatLog(data) {
|
|||
|
||||
delete rec.v;
|
||||
|
||||
let d = new Date(rec.time)
|
||||
|
||||
// Time.
|
||||
var time = '[' + rec.time.toISOString().replace('T', ' ').replace('Z', '') + ']'
|
||||
var time = '[' + d.toISOString().replace('T', ' ').replace('Z', '') + ']'
|
||||
time = stylize(time, 'none')
|
||||
|
||||
delete rec.time;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "sc-manager",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue