Skip to content

Commit

Permalink
fix(backend/mail-templates): use 'd F Y' instead of m/d/Y
Browse files Browse the repository at this point in the history
  • Loading branch information
c0rydoras committed Sep 25, 2024
1 parent 230e405 commit e7b9061
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Some of your reports have been changed.
Reviewer: {{reviewer.first_name }} {{ reviewer.last_name }}
{% for changeset in user_changes %}

Date: {{ changeset.report.date|date:"SHORT_DATE_FORMAT" }}
Date: {{ changeset.report.date|date:"d F Y" }}
Duration: {{ changeset.report.duration|duration }}
{% if "task" not in changeset.changes %}Task: {{ changeset.report.task }}{% endif %}
{% if "comment" not in changeset.changes %}Comment: {{ changeset.report.comment }}{% endif %}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ the reports to the correct project / task.
Reviewer: {{reviewer.first_name }} {{ reviewer.last_name }}
{% for changeset in user_changes %}

Date: {{ changeset.report.date|date:"SHORT_DATE_FORMAT" }}
Date: {{ changeset.report.date|date:"d F Y" }}
Duration: {{ changeset.report.duration|duration }}
Task: {{ changeset.report.task }}
Comment: {{ changeset.report.comment }}
Expand Down
8 changes: 4 additions & 4 deletions backend/timed/tracking/tests/__snapshots__/test_report.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
Reviewer: Test User


Date: 10/03/1998
Date: 03 October 1998
Duration: 3:15 (h:mm)


Expand All @@ -22,7 +22,7 @@

---

Date: 05/27/2000
Date: 27 May 2000
Duration: 2:30 (h:mm)

Comment: some other comment
Expand All @@ -33,7 +33,7 @@

---

Date: 04/20/2005
Date: 20 April 2005
Duration: 0:15 (h:mm)
Task: Allen Inc > Cross-platform content-based synergy > LLC
Comment: some other comment
Expand All @@ -44,7 +44,7 @@

---

Date: 03/23/2016
Date: 23 March 2016
Duration: 1:00 (h:mm)
Task: Allen Inc > Cross-platform content-based synergy > LLC

Expand Down

0 comments on commit e7b9061

Please sign in to comment.