Skip to content

Send created_at date when creating letter for print#4842

Merged
quis merged 1 commit intomainfrom
show-created-date-on-letter
May 6, 2026
Merged

Send created_at date when creating letter for print#4842
quis merged 1 commit intomainfrom
show-created-date-on-letter

Conversation

@quis
Copy link
Copy Markdown
Member

@quis quis commented May 6, 2026

It’s better if the date on a templated letter is the date when the user pressed Send rather than when it was processed by us.

This is because:

  • it will reflect what they see in the preview at the time of pressing send
  • it won’t change if we have to recreate the PDFs for any reason

In order to do this the API needs to tell template preview when the letter was created.


Depends on:

@quis quis force-pushed the show-created-date-on-letter branch from 6892456 to d49644b Compare May 6, 2026 10:44
It’s better if the date on a templated letter is the date when the user
pressed _Send_ rather than when it was processed by us.

This is because:
- it will reflect what they see in the preview at the time of pressing
    send
- it won’t change if we have to recreate the PDFs for any reason

In order to do this the API needs to tell template preview when the
letter was created.

***

Depends on:
- [ ] https://github.com/alphagov/notifications-template-preview/pull/973/files
@quis quis force-pushed the show-created-date-on-letter branch from d49644b to 4f89100 Compare May 6, 2026 13:27
@quis quis merged commit 806ec2a into main May 6, 2026
10 checks passed
@quis quis deleted the show-created-date-on-letter branch May 6, 2026 14:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants