apache / apache/superset

Report - Date format in filters not using Timestamp Format

Open
#33,724 12 comments 0 reactions 2 assignees Claimed by @amym-li View on GitHub
dashboard:filtersets
Dominant language
Python
Stars
74.8k
Forks
18.3k
Avg merge
2d 5h
Merged PRs (30d)
685

Description

### Bug description

Issue: Report - Date format in filters not using Timestamp Format

This happens to any Date format filter.

Steps to recreate:

- Open a dashboard.
- Click 3 dots at the upper right, select Edit Chart
- Go to the Customize tab
- Select Timestamp Format: %d-%m-%Y %H:%M:%S
- Customize Columns ActivationDate and ExpiryDate uses the same date format

![Image](https://github.com/user-attachments/assets/3c0443a4-10ba-47d3-9c71-a1dd1902fb6f)

Actual Result:

Activation Date and Expiry Date (or any date filter) uses %Y-%m-%d format

![Image](https://github.com/user-attachments/assets/3abe24a0-befa-48db-9cad-b55acb47803e)

In edit filters, theres no date format option

![Image](https://github.com/user-attachments/assets/b3dbf9a3-92d3-44db-a94a-31be38211ace)

Expected result:

All date and timestamp fields, follow the same date format. Or can be configured.

### Screenshots/recordings

_No response_

### Superset version

4.0.2

### Python version

3.9

### Node version

16

### Browser

Chrome

### Additional context

_No response_

### Checklist

- [x] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [x] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [ ] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.