Commit 2a87b502 authored by Dries's avatar Dries
Browse files

- Patch #24002: fixed node created timestamp changing on node edit.

parent 273d7f59
...@@ -1210,7 +1210,7 @@ function node_validate($node) { ...@@ -1210,7 +1210,7 @@ function node_validate($node) {
} }
if (!$node->date) { if (!$node->date) {
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i O'); $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
} }
// Validate the "authored by" field. // Validate the "authored by" field.
......
...@@ -1210,7 +1210,7 @@ function node_validate($node) { ...@@ -1210,7 +1210,7 @@ function node_validate($node) {
} }
if (!$node->date) { if (!$node->date) {
$node->date = format_date($node->created, 'custom', 'Y-m-d H:i O'); $node->date = format_date($node->created, 'custom', 'Y-m-d H:i:s O');
} }
// Validate the "authored by" field. // Validate the "authored by" field.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment