1
0
Fork 0

Items aren't modified when it happens within a second

This commit is contained in:
Michael 2017-09-26 06:41:27 +00:00
parent 4d4072cf2b
commit e666c1c035

View file

@ -96,7 +96,7 @@ class Item extends BaseObject {
$item = $this->get_data();
$edited = false;
if (strcmp($item['created'], $item['edited'])<>0) {
if (abs(strtotime($item['created']) - strtotime($item['edited'])) > 1) {
$edited = array(
'label' => t('This entry was edited'),
'date' => datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r'),