浏览代码

Merge pull request #2742 from blink1073/fix-listing

Improve filebrowser rendering performance
Afshin Darian 7 年之前
父节点
当前提交
1b7cc2a11b
共有 1 个文件被更改,包括 2 次插入2 次删除
  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.