cbuffett opened a new issue, #75697:
URL: https://github.com/apache/airflow/issues/75697

   ### 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
   
   - [x] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to