Преглед на файлове

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

Torkel Ödegaard преди 9 години
родител
ревизия
cd80884b76
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;