Add Temporal::utcNow()

This commit is contained in:
Hypolite Petovan
2018-01-25 23:26:51 -05:00
parent 38ff1b455b
commit 8aff8a76eb
51 changed files with 191 additions and 180 deletions

View File

@@ -790,8 +790,8 @@ function networkThreadedView(App $a, $update = 0)
$top_limit = current($r)['order_date'];
$bottom_limit = end($r)['order_date'];
} else {
$top_limit = Temporal::convert();
$bottom_limit = Temporal::convert();
$top_limit = Temporal::utcNow();
$bottom_limit = Temporal::utcNow();
}
// When checking for updates we need to fetch from the newest date to the newest date before
@@ -804,7 +804,7 @@ function networkThreadedView(App $a, $update = 0)
$top_limit = $last_date;
} elseif ($a->pager['page'] == 1) {
// Highest possible top limit when we are on the first page
$top_limit = Temporal::convert();
$top_limit = Temporal::utcNow();
}
$items = dba::p("SELECT `item`.`id` AS `item_id`, `item`.`network` AS `item_network`, `contact`.`uid` AS `contact_uid` FROM `item`