Procházet zdrojové kódy

Merge pull request #2742 from blink1073/fix-listing

Improve filebrowser rendering performance
Afshin Darian před 7 roky
rodič
revize
1b7cc2a11b
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  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.