diff --git a/lib/serverdensity/Api/Metrics.php b/lib/serverdensity/Api/Metrics.php
index <HASH>..<HASH> 100644
--- a/lib/serverdensity/Api/Metrics.php
+++ b/lib/serverdensity/Api/Metrics.php
@@ -16,8 +16,8 @@ class Metrics extends AbstractApi
     */
     public function available($id, $start, $end){
         $param = array(
-            'start' => date("Y-m-d\TH:i:s\Z", $start),
-            'end' => date("Y-m-d\TH:i:s\Z", $end)
+            'start' => gmdate("Y-m-d\TH:i:s\Z", $start),
+            'end' => gmdate("Y-m-d\TH:i:s\Z", $end)
         );
 
         return $this->get('metrics/definitions/'.urlencode($id), $param);
@@ -35,8 +35,8 @@ class Metrics extends AbstractApi
     */
     public function metrics($id, $filter, $start, $end){
         $param = array(
-            'start' => date("Y-m-d\TH:i:s\Z", $start),
-            'end' => date("Y-m-d\TH:i:s\Z", $end),
+            'start' => gmdate("Y-m-d\TH:i:s\Z", $start),
+            'end' => gmdate("Y-m-d\TH:i:s\Z", $end),
             'filter' => $filter
         );
use gmdate() to return UTC time that is expected

On <URL> causes the passed timestamp to be formatted in the server's local time rather than UTC (which is what the API expects).



See: <URL>