Explorar el Código

fix(dashboard timepicker): fixed issue with time picker and UTC when reading time from url, fixes #5078

Torkel Ödegaard hace 9 años
padre
commit
cd80884b76
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      public/app/features/dashboard/timeSrv.js

+ 1 - 1
public/app/features/dashboard/timeSrv.js

@@ -50,7 +50,7 @@ define([
 
       if (!isNaN(value)) {
         var epoch = parseInt(value);
-        return moment(epoch);
+        return moment.utc(epoch);
       }
 
       return null;