Просмотр исходного кода

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

Torkel Ödegaard 9 лет назад
Родитель
Сommit
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)) {
       if (!isNaN(value)) {
         var epoch = parseInt(value);
         var epoch = parseInt(value);
-        return moment(epoch);
+        return moment.utc(epoch);
       }
       }
 
 
       return null;
       return null;