core/modules/form/model/SubmissionModel.php 1 location
|
@@ 10-16 (lines=7) @@
|
7 |
|
|
8 |
|
protected $_jsonFields = ['entry']; |
9 |
|
|
10 |
|
public function displayAgo() |
11 |
|
{ |
12 |
|
$timestamp = new DateTime($this->get('added')); |
13 |
|
$timestamp = $timestamp->format('U'); |
14 |
|
|
15 |
|
return Ajde_Component_String::time2str($timestamp); |
16 |
|
} |
17 |
|
} |
18 |
|
|
core/modules/node/model/NodeModel.php 1 location
|
@@ 243-249 (lines=7) @@
|
240 |
|
return $ret; |
241 |
|
} |
242 |
|
|
243 |
|
public function displayAgo() |
244 |
|
{ |
245 |
|
$timestamp = new DateTime($this->get('updated')); |
246 |
|
$timestamp = $timestamp->format('U'); |
247 |
|
|
248 |
|
return Ajde_Component_String::time2str($timestamp); |
249 |
|
} |
250 |
|
|
251 |
|
public function displayPublished() |
252 |
|
{ |