--- ./include/defines.inc.php.orig 2017-04-19 21:19:23.000000000 +0200 +++ ./include/defines.inc.php 2017-04-19 23:12:36.000000000 +0200 @@ -32,6 +32,7 @@ define('ZBX_MIN_PERIOD', 60); // 1 minute define('ZBX_MAX_PERIOD', 63072000); // the maximum period for the time bar control, ~2 years (2 * 365 * 86400) +define('ZBX_MAX_BACK', 126144000); // ~4 years (4 * 365 * 86400) define('ZBX_MAX_DATE', 2147483647); // 19 Jan 2038 05:14:07 define('ZBX_PERIOD_DEFAULT', 3600); // 1 hour --- ./httpdetails.php.orig 2016-12-21 09:09:01.000000000 +0100 +++ ./httpdetails.php 2017-04-19 23:09:28.000000000 +0200 @@ -122,7 +122,7 @@ $itemids = $httptest_manager->getHttpStepItems($httptest['httptestid']); $itemids = zbx_objectValues($itemids, 'itemid'); -$graph_in->timeline['starttime'] = date(TIMESTAMP_FORMAT, get_min_itemclock_by_itemid($itemids)); +$graph_in->timeline['starttime'] = date(TIMESTAMP_FORMAT, time() - ZBX_MAX_BACK); $url = (new CUrl('chart3.php')) ->setArgument('height', 150) --- ./include/classes/screens/CScreenGraph.php.orig 2017-04-19 21:47:38.000000000 +0200 +++ ./include/classes/screens/CScreenGraph.php 2017-04-19 23:09:51.000000000 +0200 @@ -136,7 +136,7 @@ $isDefault = true; } - $this->timeline['starttime'] = date(TIMESTAMP_FORMAT, get_min_itemclock_by_graphid($resourceId)); + $this->timeline['starttime'] = date(TIMESTAMP_FORMAT, time() - ZBX_MAX_BACK); $timeControlData['src'] = $this->screenitem['url'].'&width='.$this->screenitem['width'] .'&height='.$this->screenitem['height'].'&legend='.$legend --- ./include/classes/screens/CScreenChart.php.orig 2017-04-19 21:47:51.000000000 +0200 +++ ./include/classes/screens/CScreenChart.php 2017-04-19 23:08:48.000000000 +0200 @@ -62,7 +62,7 @@ } $src .= '?graphid='.$this->graphid.'&period='.$this->timeline['period'].'&stime='.$this->timeline['stimeNow'].$this->getProfileUrlParams(); - $this->timeline['starttime'] = date(TIMESTAMP_FORMAT, get_min_itemclock_by_graphid($this->graphid)); + $this->timeline['starttime'] = date(TIMESTAMP_FORMAT, time() - ZBX_MAX_BACK); $timeControlData = [ 'id' => $this->getDataId(),