Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

New Windows PT time zone results in UI error due to unresolved time zone

オープン 初心者向け
#75,697 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
66/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript
領域
frontend

調査の方向性

Airflow の Web UI コードで、選択されたタイムゾーンが解決され、時刻の表示に使われる箇所から調べてください。報告では selectedTimezone.toUpperCase() の呼び出しにガードがないと指摘されていますが、ソースファイルやテストは示されていません。Windows の Pacific Time タイムゾーンを設定し、ブラウザーのローカルストレージを消去して再現してください。そのうえで、解決できない OS タイムゾーンのテストを探すか追加してください。時刻を表示するページがクラッシュせず、安全なフォールバックを使って読み込まれれば完了です。

索引モデルが issue の本文から書いたものです。

説明

kind:bug needs-triage
Under which category would you file this issue?

Airflow Core

Apache Airflow version

3.1.7

What happened and how to reproduce it?

After recently switching my time zone from PDT to the new unified Pacific Time (PT) time zone, I received the following error after logging in:

TypeError: Cannot read properties of undefined (reading 'toUpperCase')
    at gd (index-DMFz1oOG.js:584:8179)
    at Dft (index-DMFz1oOG.js:70:34718)
    at Jit (index-DMFz1oOG.js:70:63847)
    at Dvn (index-DMFz1oOG.js:70:74419)
    at a1n (index-DMFz1oOG.js:70:108782)
    at fSr (index-DMFz1oOG.js:70:107817)
    at Ttt (index-DMFz1oOG.js:70:107643)
    at r1n (index-DMFz1oOG.js:70:104696)
    at m1n (index-DMFz1oOG.js:70:116348)
    at MessagePort.vn (index-DMFz1oOG.js:55:1683)

This appears to be caused by stale time zone information in local storage and an unguarded call to selectedTimezone.toUpperCase() where selectedTimezone is undefined due to being unable to resolve the OS time zone to an IANA name.

Reproduction:

  1. Set your Windows time zone to Pacific Time (UTC -7:00)
  2. Clear browser local storage for the Airflow server
  3. Log in to Airflow
  4. Any page that renders the Time crashes

I'm able to work around this by changing the time zone for my user in the Airflow UI.

What you think should happen instead?

The UI should fall back to a known value when it fails to resolve the OS time zone, e.g., UTC. Any page that renders the time should not crash.

Operating System

Windows 11 64-bit

Deployment

Official Apache Airflow Helm Chart

Apache Airflow Provider(s)

No response

Versions of Apache Airflow Providers

No response

Official Helm Chart version

Not Applicable

Kubernetes Version

Not Applicable

Helm Chart configuration

No response

Docker Image customizations

No response

Anything else?

No response

Are you willing to submit PR?
  • Yes I am willing to submit a PR!
Code of Conduct
主要言語
Python
スター
47.3k
フォーク
18.1k
平均マージ
1日 2時間
マージ済み PR(30日)
627

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

apache/airflow のほかの issue

apache/airflow の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。