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

   ### Apache Airflow version
   
   2.3.3
   
   ### What happened
   
   I changed airflow core, airflow webserver and linux system timezone to IST 
from UTC.
   Everything is as expected except logs.
   When I select UTC in UI, the log is what is in disk, IST (+5:30) time. But 
when I select IST in UI, the log timestamps change to UTC +5:30 +5:30.
   
   Either the logs should contain timezone info, else we should consider the 
system timezone as the log timezone.
   
   Airflow Timezone Info:-
   
![image](https://user-images.githubusercontent.com/3456652/185645363-887addb0-d2ba-4f5e-88af-ef7fd0b0adac.png)
   
   System Timezone Info:-
   
![image](https://user-images.githubusercontent.com/3456652/185645451-8dbc4ffe-3c1b-49ff-8cdf-2e2d818ad067.png)
   
   Log file from disk:-
   
![image](https://user-images.githubusercontent.com/3456652/185645599-d5003cb5-c89b-40d8-a179-37ee20831469.png)
   
   Log file from UI with UTC time:-
   
![image](https://user-images.githubusercontent.com/3456652/185645849-adf10865-b5b4-40a3-b4aa-ad105e8c5f78.png)
   
   Log file from UI with IST time:-
   
![image](https://user-images.githubusercontent.com/3456652/185646175-ee668aea-967c-4538-804e-b99aaa71c0d6.png)
   
   
   ### What you think should happen instead
   
   UI log timestamps should be same as disk, else UI should detect what the 
timezone the logs were written in, else timezone info should be written into 
logs.
   
   ### How to reproduce
   
   _No response_
   
   ### Operating System
   
   Ubuntu 20.04.3 LTS
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Deployment
   
   Virtualenv installation
   
   ### Deployment details
   
   _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