GitHub user AryanK1511 added a comment to the discussion: Incorrect timezone 
display in task log view

@humit0 I have an answer for you. 

In the current state there is no direct config setting through the 
`airflow.cfg` file for the UI's Timezone.

**The `default_ui_timezone` configuration was removed** in [PR 
#49176](https://github.com/apache/airflow/pull/49176) as part of AIP-38. The UI 
now uses a simpler approach:

1. The UI automatically detects and uses the **system timezone** from the 
user's browser
2. Users can manually change their timezone preference through the UI's 
timezone selector.
3. The selected timezone is stored in the browser's `localStorage`, making it a 
per-browser setting

So, I setup airflow using the `airflow standalone` command just like you did. 
On the bottom right corner of your screen, you will see the user settings where 
you have the ability to set a timezone for the UI. 

<img width="291" alt="Image" 
src="https://github.com/user-attachments/assets/704e210b-10c2-4a01-b4d3-6731edbf33eb";
 />

Checkout my example below with a DAG that I ran some time ago. 

Here, I am using the UTC time zone.

<img width="1021" alt="Image" 
src="https://github.com/user-attachments/assets/a3e574e3-5662-4806-a084-74d829616436";
 />

However, as soon as I switch to America/Toronto, which is my timezone, the logs 
and the UI change as well. 

<img width="977" alt="Image" 
src="https://github.com/user-attachments/assets/ef234d5d-badf-46f0-a42d-d6e95a2f72e6";
 />

I hope this answers your question. Lemme know if we can close this issue now. 



GitHub link: 
https://github.com/apache/airflow/discussions/53195#discussioncomment-13733131

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to