diff --git a/frontend/config/main.php b/frontend/config/main.php index f79145a..8ceaeb4 100755 --- a/frontend/config/main.php +++ b/frontend/config/main.php @@ -375,7 +375,7 @@ 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [ - + ], 'hideDefaultLanguagePrefix' => true, ], diff --git a/frontend/controllers/BlogController.php b/frontend/controllers/BlogController.php index ec21ee4..4a7352d 100755 --- a/frontend/controllers/BlogController.php +++ b/frontend/controllers/BlogController.php @@ -97,8 +97,8 @@ "@id" => "https://google.com/article" ], "headline" => "Article headline", - "datePublished" => $model->created_at, - "dateModified" => $model->updated_at, + "datePublished" => date('d-m-Y', $model->created_at), + "dateModified" => date('d-m-Y', $model->created_at), # оставьте пока что этот участок # author_id уже есть, если что, можно будет быстро его подключить -- libgit2 0.21.4