Skip to content

Commit 3df0e9e

Browse files
Update packages/filebrowser/src/listing.ts
Co-authored-by: Michał Krassowski <[email protected]>
1 parent 9600f97 commit 3df0e9e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/filebrowser/src/listing.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,12 +834,11 @@ export class DirListing extends Widget {
834834
this._modifiedStyle
835835
);
836836
} else {
837-
// Render the date in one of multiple formats, depending on the container's size
838-
modified.textContent = Time.formatHuman(
837+
DirListing.defaultRenderer.updateItemModified(
838+
modified,
839839
item.last_modified,
840840
this._modifiedStyle
841841
);
842-
modified.title = Time.format(new Date(item.last_modified));
843842
}
844843
}
845844
});

0 commit comments

Comments
 (0)