-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix timezone display for logs on UI #23075
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes look good to me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Related: #19342
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
Cherry-pick of apache/airflow#23075 Fix timezone display for logs on UI Internal bug RELNOTES=BUGFIX Change-Id: Id1a20a676eb7dcebe3617f7a63120f3fc71b2131 GitOrigin-RevId: 548b75ea219cd879a0c52101b5c189ae1a84523c
Cherry-pick of apache/airflow#23075 Fix timezone display for logs on UI Internal bug RELNOTES=BUGFIX Change-Id: I1e7d48bb0f5e2b0d12e86dd90f59453c9a7766f4 GitOrigin-RevId: c97c1c6503b71f5cd2401e84b113f77f266e6dd3
In this PR I have fixed the bug with logs display in UI. The problem is that our time conversion doesn't work correctly. I will try to describe it below. On server side we create a logs in UTC time. After that on UI JavaScript takes this logs and for each timestamps changes UTC flag to flag which is indicated like serverTimezone. But without time conversion, for example for PDT timezone: 2022-04-13 12:15:00,117+00:00 time in log file, on UI will be changed to 2022-04-13 12:15:00,117−07:00 time. Then another JS code using a correct convert function converts this timestamp to a time with a serverTimezone and in result we will see 2022-04-13, 12:15:00 PDT. How you see now we have UTC time with PDT label and each next conversion will create an incorrect time view.
Co-authored-by: Wojciech Januszek [email protected]
Co-authored-by: Lukasz Wyszomirski [email protected]
Co-authored-by: Maksim Yermakou [email protected]
^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code change, Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in UPDATING.md.