Browse Source

Merge pull request #2742 from blink1073/fix-listing

Improve filebrowser rendering performance
Afshin Darian 7 years ago
parent
commit
1b7cc2a11b
1 changed files with 2 additions and 2 deletions
  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.