Skip to content

Commit c2d0234

Browse files
committed
Set publish date to now for new pages/posts
1 parent a6d3611 commit c2d0234

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

admin/controller/content/edit.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,8 @@ function index() {
146146

147147
//$productImages = $posts->getImages($postOptions);
148148
} else {
149-
$post['image_url'] = Images::image('',$this->object);
149+
$post['image_url'] = Images::image('',$this->object);
150+
$post['updated_at'] = date('Y-m-d H:i:s', time());
150151
}
151152

152153
/*

0 commit comments

Comments
 (0)