force delayed_publish time comparisons to UTC.
This commit is contained in:
parent
7073200e53
commit
8b87eee869
@ -1462,8 +1462,8 @@ function item_store($arr,$force_parent = false) {
|
|||||||
// handle time travelers
|
// handle time travelers
|
||||||
// Allow a bit of fudge in case somebody just has a slightly slow/fast clock
|
// Allow a bit of fudge in case somebody just has a slightly slow/fast clock
|
||||||
|
|
||||||
$d1 = new DateTime('now +10 minutes');
|
$d1 = new DateTime('now +10 minutes', new DateTimeZone('UTC'));
|
||||||
$d2 = new DateTime($arr['created']);
|
$d2 = new DateTime($arr['created'] . '+00:00');
|
||||||
if($d2 > $d1)
|
if($d2 > $d1)
|
||||||
$arr['item_restrict'] = $arr['item_restrict'] | ITEM_DELAYED_PUBLISH;
|
$arr['item_restrict'] = $arr['item_restrict'] | ITEM_DELAYED_PUBLISH;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user