Steven Silvester 7 лет назад
Родитель
Сommit
c1e3e80e65
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.