Browse Source

Merge pull request #2742 from blink1073/fix-listing

Improve filebrowser rendering performance
Afshin Darian 7 năm trước cách đây
mục cha
commit
1b7cc2a11b
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      packages/filebrowser/src/listing.ts

+ 2 - 2
packages/filebrowser/src/listing.ts

@@ -1676,8 +1676,8 @@ namespace DirListing {
       let modText = '';
       let modTitle = '';
       if (model.last_modified) {
-        modText = Time.formatHuman(model.last_modified);
-        modTitle = Time.format(model.last_modified);
+        modText = Time.formatHuman(new Date(model.last_modified));
+        modTitle = Time.format(new Date(model.last_modified));
       }
 
       // If an item is being edited currently, its text node is unavailable.