You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/08/31 23:15:37 UTC

[GitHub] [airflow] SamWheating edited a comment on issue #17906: Some timezones in Web UI shows as number, not timezone name

SamWheating edited a comment on issue #17906:
URL: https://github.com/apache/airflow/issues/17906#issuecomment-909719331


   This comes down to the intended behaviour of [moment-timezone](https://github.com/moment/moment-timezone), the JS package used for handling timezones in the UI. Here's the part of the source which populates that field:
   https://github.com/apache/airflow/blob/dd386c81f50fe2a93cf0bff0c3da2c66f2dc6e6a/airflow/www/static/js/datetime_utils.js#L23-L33
   
   
   You can replicate this behaviour by running the relevant line of code in the javascript console of the Airflow webserver:
   ```javascript
   > moment().tz("America/Vancouver").format('z (Z)')
   "PDT (-07:00)"
   
   > moment().tz("Chile/Continental").format('z (Z)')
   "-04 (-04:00)"
   ```
   
   Looking into the discussion in [this issue](https://github.com/moment/moment-timezone/issues/841) on moment-timezone, I believe that this is intended behaviour for some timezones due to this [ICANN change from 2017](https://mm.icann.org/pipermail/tz-announce/2017-February/000045.html) in which it was decided to use numeric abbreviations for many South American time zones.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org