You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by as...@apache.org on 2021/03/19 15:06:15 UTC

[airflow] 13/42: Fix comparison dagTZ with localTZ (#14204)

This is an automated email from the ASF dual-hosted git repository.

ash pushed a commit to branch v2-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 1858a940c4fed61c87baaac726db192844788e1f
Author: Alexander Millin <mi...@gmail.com>
AuthorDate: Mon Feb 15 18:35:09 2021 +0300

    Fix comparison dagTZ with localTZ (#14204)
    
    (cherry picked from commit fe0ee585d11474a0c99e51a4400dc16f643ea14b)
---
 airflow/www/static/js/task-instances.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/airflow/www/static/js/task-instances.js b/airflow/www/static/js/task-instances.js
index 1f71fa1..be9df24 100644
--- a/airflow/www/static/js/task-instances.js
+++ b/airflow/www/static/js/task-instances.js
@@ -35,7 +35,7 @@ function generateTooltipDateTimes(startDate, endDate, dagTZ) {
   }
 
   const tzFormat = 'z (Z)';
-  const localTZ = moment.defaultZone.name;
+  const localTZ = moment.defaultZone.name.toUpperCase();
   startDate = moment.utc(startDate);
   endDate = moment.utc(endDate);
   dagTZ = dagTZ.toUpperCase();