Skip to content

Commit

Permalink
fix: debug log viewer file names do not use proper date format
Browse files Browse the repository at this point in the history
  • Loading branch information
Codeneos committed Nov 21, 2022
1 parent 2ae7d6c commit de76b2a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ export class DebugLogViewer {
}

public async showDeveloperLog(log: DeveloperLog) {
return this.openLog(await log.getBody(), `${moment(log.startTime).format('MM-DD-YYYY_HH-MM-SS')}_${log.id}.log`);
return this.openLog(await log.getBody(), `${moment(log.startTime).format('MM-DD-YYYY_HH-mm-ss')}_${log.id}.log`);
}

public showExecutionLog(log: string) {
return this.openLog(this.formatExecutionLog(log), `${moment().format('MM-DD-YYYY_HH-MM-SS')}.log`);
return this.openLog(this.formatExecutionLog(log), `${moment().format('MM-DD-YYYY_HH-mm-ss')}.log`);
}

private async openLog(logBody: string, logFileName: string) {
Expand Down

0 comments on commit de76b2a

Please sign in to comment.