- Patch #24002: fixed node created timestamp changing on node edit.
parent
273d7f59b6
commit
2a87b5029b
|
@ -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) {
|
||||||
}
|
}
|
||||||
|
|
||||||
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.
|
||||||
|
|
Loading…
Reference in New Issue