diff --git a/plugins/ExampleUI/API.php b/plugins/ExampleUI/API.php
index 681e2afb4b0c727b6c7f54f9d2902e2177fc4647..67f1f1d79ad87509f920836b17878aaec8a38566 100644
--- a/plugins/ExampleUI/API.php
+++ b/plugins/ExampleUI/API.php
@@ -11,6 +11,7 @@
 namespace Piwik\Plugins\ExampleUI;
 
 use Piwik\DataTable;
+use Piwik\Date;
 use Piwik\Period\Range;
 
 /**
@@ -28,7 +29,10 @@ class API extends \Piwik\Plugin\API
     public function getTemperaturesEvolution($date, $period)
     {
         $temperatures = array();
+
+        $date   = Date::factory('2013-10-10', 'UTC');
         $period = new Range($period, 'last30');
+        $period->setDefaultEndDate($date);
 
         foreach ($period->getSubperiods() as $subPeriod) {
             if (self::$disableRandomness) {