Skip to content

DATE_FORMAT_IN_EMAIL_SUBJECT only evaluated at schedule save time #35908

@globaljonsey

Description

@globaljonsey

Bug description

I am using the DATE_FORMAT_IN_EMAIL_SUBJECT feature with an hourly scheduled report using a token to display the current datetime i.e. Propane Hourly Report %c. The substitution works the title of the email sent is "[Report] Propane Hourly Report Wed Oct 29 09:32:01 2025". However the datetime substitution is for the datetime the schedule was saved and never changes for each new email sent.

Should the substitution not be evaluated with each new hourly email sent ?

Screenshots/recordings

Image Image

Superset version

5.0.0

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

    alert-reportsNamespace | Anything related to the Alert & Reports feature

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions