diff --git a/app/Http/Controllers/Page/PageController.php b/app/Http/Controllers/Page/PageController.php index 975435abd..bbaa7d08e 100644 --- a/app/Http/Controllers/Page/PageController.php +++ b/app/Http/Controllers/Page/PageController.php @@ -58,7 +58,6 @@ public function index() public function beritaDesa() { $this->data = $this->getFeeds(); - $feeds = collect($this->data)->sortByDesc('date')->take(config('setting.jumlah_artikel_desa') ?? 30)->paginate(config('setting.artikel_desa_perhalaman') ?? 10); $feeds->all(); @@ -88,7 +87,7 @@ private function getFeeds() 'feed_link' => $item->get_feed()->get_permalink(), 'feed_title' => $item->get_feed()->get_title(), 'link' => $item->get_link(), - 'date' => \Carbon\Carbon::parse($item->get_date('U'))->translatedFormat('d F Y'), + 'date' => \Carbon\Carbon::parse($item->get_date('U')), 'author' => $item->get_author()->get_name() ?? 'Administrator', 'title' => $item->get_title(), 'image' => get_tag_image($item->get_description()), diff --git a/catatan_rilis.md b/catatan_rilis.md index c973ef001..60600ba99 100644 --- a/catatan_rilis.md +++ b/catatan_rilis.md @@ -10,11 +10,14 @@ Terima kasih pada [untuk diisi] yang terus berkontribusi. Terima kasih pula pada 2. [#333](https://github.com/OpenSID/OpenDK/issues/333) Sinkronisasi Data Pembangunan OpenSID ke OpenDK. 3. [#384](https://github.com/OpenSID/OpenDK/issues/384) Sediakan ganti password saat selesai login jika menggunakan password masih default. + #### Perbaikan BUG 1. [#401](https://github.com/OpenSID/OpenDK/issues/401) Perbaiki tidak bisa ubah gambar slider. 2. [#391](https://github.com/OpenSID/OpenDK/issues/391) Perbaiki gagal upload foto profil user. +3. [#402](https://github.com/OpenSID/OpenDK/issues/402) Perbaiki artikel baru tidak tampil dan sesuaikan urutannya. #### TEKNIS 1. [#72](https://github.com/OpenSID/OpenDK/issues/72) Amankan route api penduduk dengan middleware. 2. Sesuaikan sebutan desa yang tidak muncul. + diff --git a/resources/views/pages/berita/feeds.blade.php b/resources/views/pages/berita/feeds.blade.php index bba176486..c4fb6c224 100644 --- a/resources/views/pages/berita/feeds.blade.php +++ b/resources/views/pages/berita/feeds.blade.php @@ -9,7 +9,7 @@
- {{ $item['date'] }} | + {{ $item['date']->translatedFormat('d F Y') }} | {{ $item['author'] }} | {{ $item['nama_desa'] }}