Skip to content
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

[AIRFLOW-5277] Gantt chart respects per-user the Timezone UI setting #8096

Merged
merged 1 commit into from
Apr 3, 2020

Conversation

ashb
Copy link
Member

@ashb ashb commented Apr 3, 2020

output

(click for a slightly larger view)

new Date() in javascript was always returning user-local time, so we
switch over to using MomentJS to render the ticks.

I also had to fix a bug in the redraw function here (previously
unused, now used when the user selects a different timezone.)


Make sure to mark the boxes below before creating PR: [x]


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.
Read the Pull Request Guidelines for more information.

@ashb ashb added the area:webserver Webserver related Issues label Apr 3, 2020
@ashb ashb added this to the Airflow 1.10.11 milestone Apr 3, 2020
@ashb ashb requested a review from kaxil April 3, 2020 14:03
`new Date()` in javascript was always returning user-local time, so we
switch over to using MomentJS to render the ticks.

I also had to fix a bug in the `redraw` function here (previously
unused, now used when the user selects a different timezone.)
@ashb ashb merged commit 14db373 into apache:master Apr 3, 2020
@ashb ashb deleted the gantt-chart-timezone branch April 3, 2020 16:54
ashb added a commit that referenced this pull request Apr 3, 2020
…8096)

`new Date()` in javascript was always returning user-local time, so we
switch over to using MomentJS to render the ticks.

I also had to fix a bug in the `redraw` function here (previously
unused, now used when the user selects a different timezone.)

(cherry picked from commit 14db373)
@ashb ashb modified the milestones: Airflow 1.10.11, Airflow 1.10.10 Apr 3, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:webserver Webserver related Issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants