소스 검색

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;