Skip to content

Commit af0fa71

Browse files
committed
feat: Add time field support to replace original startTime by a custom time
1 parent 20ca9a2 commit af0fa71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/LogEvent.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class LogEvent {
1818
private _startTime = new Date();
1919

2020
get startTime(): Date {
21-
return this._startTime;
21+
return this.data && this.data[0] && this.data[0].time ? this.data[0].time : this._startTime;
2222
}
2323

2424
public get categoryName(): string {

0 commit comments

Comments
 (0)