PrefectHQ / prefect

Prefect is a workflow orchestration framework for building resilient data pipelines in Python.
https://prefect.io
Apache License 2.0
17.48k stars 1.64k forks source link

add possibility to choose the timezone in the UI for the datetime flow parameters #12256

Open pierreloicq opened 8 months ago

pierreloicq commented 8 months ago

First check

Prefect Version

2.x

Describe the current behavior

Being in France, in my current account preference I have: Timezone: Europe/Paris

If I enter 1st March 2024 00:00 in the calendar given by the UI for datetime flow parameters, I get: "2024-03-01T00:00:00+01:00" It is something I don't want since the dataset I handle is in UTC. But it is fine that the other hours displayed in the UI (times of launch and end of the flows) are in my locale hour.

Describe the proposed behavior

So it would be nice to add the possibility to choose the timezone in the UI for the flow parameters. This is needed more than in the previous version of the UI because if I choose the date and time with the calendar and then click on the json display to correct the timezone, the date entered with the calendar disappear.

Example Use

No response

Additional context

No response

zhen0 commented 4 months ago

Hi @pierreloicq - you should be able to update your timezone in the user profile/preferences section of the UI. Does that help you?

pierreloicq commented 4 months ago

Yes, I am at : Timezone: Europe/Paris It doesn't really address what is now just an enhancement proposal since this doesn't seem to be true anymore : This is needed more than in the previous version of the UI because if I choose the date and time with the calendar and then click on the json display to correct the timezone, the date entered with the calendar disappear.