Procházet zdrojové kódy

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

Torkel Ödegaard před 9 roky
rodič
revize
cd80884b76
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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;