Skip to content

Commit 2af8f34

Browse files
committed
Replaced substr w/ slice
1 parent 6a97fa9 commit 2af8f34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/views/statsView.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ export class StatsView extends GView<StatsNode> {
224224
this._children.push(
225225
new StatsNode(
226226
StatsType.RunTime,
227-
`Est Runtime: ${new Date(this._stats.runtime * 1000).toISOString().substr(11, 8)}`,
227+
`Est Runtime: ${new Date(this._stats.runtime * 1000).toISOString().slice(11, 19)}`,
228228
undefined,
229229
ResourceType.Stats,
230230
TreeItemCollapsibleState.None,

0 commit comments

Comments
 (0)