diff --git a/App/Controllers/Posts.php b/App/Controllers/Posts.php index c2bb131..c028373 100644 --- a/App/Controllers/Posts.php +++ b/App/Controllers/Posts.php @@ -329,6 +329,7 @@ class Posts foreach ($args as $key => $val) { if (strpos($val, "##date##") !== false) { $date = new \DateTime(); + $now = $date->format("Y-m-d"); $args[$key] = $now; } } diff --git a/App/Views/Data/pengumuman.html b/App/Views/Data/pengumuman.html index 270d396..9324041 100644 --- a/App/Views/Data/pengumuman.html +++ b/App/Views/Data/pengumuman.html @@ -60,7 +60,7 @@