Fixed update posts error

This commit is contained in:
2017-09-16 13:10:56 +07:00
parent 6cb980051c
commit e57104198b
2 changed files with 2 additions and 1 deletions

View File

@@ -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;
}
}