Skip to content

Commit

Permalink
Update packages/filebrowser/src/listing.ts
Browse files Browse the repository at this point in the history
Co-authored-by: Michał Krassowski <5832902+krassowski@users.noreply.github.com>
  • Loading branch information
JasonWeill and krassowski committed Apr 17, 2024
1 parent 5c5d533 commit e54531f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/filebrowser/src/listing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,12 +834,11 @@ export class DirListing extends Widget {
this._modifiedStyle
);
} else {
// Render the date in one of multiple formats, depending on the container's size
modified.textContent = Time.formatHuman(
DirListing.defaultRenderer.updateItemModified(
modified,
item.last_modified,
this._modifiedStyle
);
modified.title = Time.format(new Date(item.last_modified));
}
}
});
Expand Down

0 comments on commit e54531f

Please sign in to comment.