Use Y-m-d H:i:s for default 'posted' date
This commit is contained in:
parent
a828c3e0e5
commit
caa3c80de4
1 changed files with 1 additions and 1 deletions
|
@ -369,7 +369,7 @@ class Image
|
||||||
$cut_name = substr($this->filename, 0, 255);
|
$cut_name = substr($this->filename, 0, 255);
|
||||||
|
|
||||||
if (is_null($this->posted) || $this->posted == "") {
|
if (is_null($this->posted) || $this->posted == "") {
|
||||||
$this->posted = date('c', time());
|
$this->posted = date('Y-m-d H:i:s', time());
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($this->id)) {
|
if (is_null($this->id)) {
|
||||||
|
|
Reference in a new issue