aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-05-29 21:11:30 -0700
committerfriendica <info@friendica.com>2013-05-29 21:11:30 -0700
commit8b87eee86982feddfa56c9b585dce37b9337900b (patch)
tree1adb23f4e08f630d6b11b9bf28da72210109f982
parent7073200e53f1523b78ea81e6050807aedbd3e183 (diff)
downloadvolse-hubzilla-8b87eee86982feddfa56c9b585dce37b9337900b.tar.gz
volse-hubzilla-8b87eee86982feddfa56c9b585dce37b9337900b.tar.bz2
volse-hubzilla-8b87eee86982feddfa56c9b585dce37b9337900b.zip
force delayed_publish time comparisons to UTC.
-rwxr-xr-xinclude/items.php4
1 files 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;