From 8b87eee86982feddfa56c9b585dce37b9337900b Mon Sep 17 00:00:00 2001 From: friendica Date: Wed, 29 May 2013 21:11:30 -0700 Subject: force delayed_publish time comparisons to UTC. --- include/items.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/items.php b/include/items.php index 9c3c3f096..4704ca344 100755 --- a/include/items.php +++ b/include/items.php @@ -1462,8 +1462,8 @@ function item_store($arr,$force_parent = false) { // handle time travelers // Allow a bit of fudge in case somebody just has a slightly slow/fast clock - $d1 = new DateTime('now +10 minutes'); - $d2 = new DateTime($arr['created']); + $d1 = new DateTime('now +10 minutes', new DateTimeZone('UTC')); + $d2 = new DateTime($arr['created'] . '+00:00'); if($d2 > $d1) $arr['item_restrict'] = $arr['item_restrict'] | ITEM_DELAYED_PUBLISH; -- cgit v1.2.3