user timezone v1 , add autofocus for CreateFolder,RenameItem popup

This commit is contained in:
Milos Holba
2021-01-03 18:00:28 +01:00
parent 64fd6a2265
commit ded02fc15b
12 changed files with 138 additions and 18 deletions

View File

@@ -133,7 +133,7 @@ class FileManagerFolder extends Model
*/
public function getCreatedAtAttribute()
{
return format_date($this->attributes['created_at'], __('vuefilemanager.time'));
return format_date(set_time_by_user_timezone($this->attributes['created_at']), __('vuefilemanager.time'));
}
/**
@@ -145,7 +145,7 @@ class FileManagerFolder extends Model
{
if (! $this->attributes['deleted_at']) return null;
return format_date($this->attributes['deleted_at'], __('vuefilemanager.time'));
return format_date(set_time_by_user_timezone($this->attributes['deleted_at']), __('vuefilemanager.time'));
}
/**