Skip to content

Configurable UI clock format #20045

@edwardwang888

Description

@edwardwang888

Description

There has been some interest expressed in having a configurable UI clock datetime format (#18866). The options currently proposed are:

  • Adding a toggle to show/hide the date
    • We can include other common formatting options that are requested
  • Accepting a datetime format string specifying a custom format
    • I imagine the simplest way to implement this is to ask the user to enter a valid format string of the datetime formatting library that is in use at the time. For example, if we are using moment.js, then ask the user to enter a valid moment.js format string. Since I expect this option to be used mainly by advanced users, I think it is fine to ask them to look up the valid format string syntax.

Use case/motivation

The date was removed from the UI clock in Airflow 2 - some liked it, and others didn't. Everyone has different preferences, so making it configurable would be a suitable approach.

Related issues

The original PR with some previous discussion: #18866

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Labels

area:UIRelated to UI/UX. For Frontend Developers.kind:featureFeature Requests

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions