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
|
@@ 242-248 (lines=7) @@
|
| 239 |
|
return $ret; |
| 240 |
|
} |
| 241 |
|
|
| 242 |
|
public function displayAgo() |
| 243 |
|
{ |
| 244 |
|
$timestamp = new DateTime($this->get('updated')); |
| 245 |
|
$timestamp = $timestamp->format('U'); |
| 246 |
|
|
| 247 |
|
return Ajde_Component_String::time2str($timestamp); |
| 248 |
|
} |
| 249 |
|
|
| 250 |
|
public function displayPublished() |
| 251 |
|
{ |