Skip to content

Commit bb712e2

Browse files
authored
Don't change create datetime (#35724)
1 parent 13de705 commit bb712e2

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

administrator/components/com_tags/src/Model/TagModel.php

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,9 @@ public function getItem($pk = null)
127127
$registry = new Registry($result->urls);
128128
$result->urls = $registry->toArray();
129129

130-
// Convert the created and modified dates to local user time for display in the form.
130+
// Convert the modified dates to local user time for display in the form.
131131
$tz = new \DateTimeZone(Factory::getApplication()->get('offset'));
132132

133-
if ((int) $result->created_time)
134-
{
135-
$date = new Date($result->created_time);
136-
$date->setTimezone($tz);
137-
$result->created_time = $date->toSql(true);
138-
}
139-
else
140-
{
141-
$result->created_time = null;
142-
}
143-
144133
if ((int) $result->modified_time)
145134
{
146135
$date = new Date($result->modified_time);

0 commit comments

Comments
 (0)