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

   ### Apache Airflow version
   
   3.0.2
   
   ### If "Other Airflow 2 version" selected, which one?
   
   _No response_
   
   ### What happened?
   
   The time field in the task logs displayed on the web interface is showing an 
incorrect timezone.
   
   Although the default timezone is configured to KST (+09:00) and the web 
display is also set to KST, the times are being displayed in UTC. And log files 
are also recording in UTC.
   
   web
   
   <img width="1828" alt="Image" 
src="https://github.com/user-attachments/assets/a5f794e5-87d4-40b7-beda-dbc27af27353";
 />
   
   log file
   <img width="958" alt="Image" 
src="https://github.com/user-attachments/assets/d02a5f3a-6443-4058-897a-6dbf35578388";
 />
   
   
   ### What you think should happen instead?
   
   i think timestamper should set with `utc=False`
   
https://github.com/apache/airflow/blob/79838baef32afab08816bba958b4c1622cf162d6/task-sdk/src/airflow/sdk/log.py#L146-L147
   
   
   ### How to reproduce
   
   ## Configured environment variables
   ```shell
   export AIRFLOW_HOME=/tmp/airflow
   export AIRFLOW__CORE__LOAD_EXAMPLES=False
   export AIRFLOW__CORE__DEFAULT_TIMEZONE=Asia/Seoul
   ```
   ## DAG
   ```python
   from airflow.models import DAG
   from airflow.providers.standard.operators.bash import BashOperator
   
   default_args = {
       "owner": "airflow",
       "depends_on_past": False,
       "start_date": "2023-01-01",
       "retries": 1,
   }
   
   with DAG(
       dag_id="test_dag",
       default_args=default_args,
       schedule="@once",
   ) as dag:
       BashOperator(
           task_id="test_task",
           bash_command="echo '{{ ds }}'",
       )
   
   ```
   
   ### Operating System
   
   MacOS 
   
   ### Versions of Apache Airflow Providers
   
   apache-airflow-providers-amazon==9.8.0
   apache-airflow-providers-apache-spark==5.3.0
   apache-airflow-providers-celery==3.11.0
   apache-airflow-providers-common-compat==1.7.0
   apache-airflow-providers-common-io==1.6.0
   apache-airflow-providers-common-sql==1.27.1
   apache-airflow-providers-http==5.3.0
   apache-airflow-providers-postgres==6.2.0
   apache-airflow-providers-redis==4.1.0
   apache-airflow-providers-smtp==2.1.0
   apache-airflow-providers-standard==1.2.0
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   Running with `airflow standalone` command
   
   ### Anything else?
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [x] 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