Use Y-m-d H:i:s for default 'posted' date

This commit is contained in:
Shish 2022-10-27 17:09:02 +01:00
parent a828c3e0e5
commit caa3c80de4

View file

@ -369,7 +369,7 @@ class Image
$cut_name = substr($this->filename, 0, 255);
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)) {