Skip to content

Report - Date format in filters not using Timestamp Format #33724

Open
@praveer-rc

Description

@praveer-rc

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

Actual Result:

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

Image

In edit filters, theres no date format option

Image

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

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    dashboard:filtersetsRelated to the filtersets of the Dashboard

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions