Merge pull request #3737 from annando/is_modified
Items aren't edited when it happens within a second
This commit is contained in:
commit
6915ace6ca
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ class Item extends BaseObject {
|
||||||
|
|
||||||
$item = $this->get_data();
|
$item = $this->get_data();
|
||||||
$edited = false;
|
$edited = false;
|
||||||
if (strcmp($item['created'], $item['edited'])<>0) {
|
if (abs(strtotime($item['created']) - strtotime($item['edited'])) > 1) {
|
||||||
$edited = array(
|
$edited = array(
|
||||||
'label' => t('This entry was edited'),
|
'label' => t('This entry was edited'),
|
||||||
'date' => datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r'),
|
'date' => datetime_convert('UTC', date_default_timezone_get(), $item['edited'], 'r'),
|
||||||
|
|
Loading…
Reference in a new issue