Skip to content

Commit

Permalink
feat(favorites): Convert prayer email dates to UTC
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Dec 18, 2024
1 parent 219214d commit 74215f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cl/favorites/templates/prayer_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ <h3 class="alt bottom" style="font-size: 1.5em; font-weight: normal; line-height
<td style="text-align: center">{{ docket_entry.entry_number }}{% if rd.attachment_number %}-{{ rd.attachment_number }}{% endif %}</td>
<td>
{% if docket_entry.datetime_filed %}
<span title="{{ docket_entry.datetime_filed|datetime_in_utc}}">{{ docket_entry.datetime_filed|datetime_in_utc|date:"M j, Y" }}</span>
<span title="{{ docket_entry.datetime_filed|utc}}">{{ docket_entry.datetime_filed|utc|date:"M j, Y T" }}</span>
{% else %}
{{ docket_entry.date_filed|date:"M j, Y"|default:'<em class="gray">Unknown</em>' }}
{% endif %}
Expand Down
2 changes: 1 addition & 1 deletion cl/favorites/templates/prayer_email.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ The document you were waiting for is now available in RECAP.
View Docket: https://www.courtlistener.com{{ docket.get_absolute_url }}?order_by=desc

Document Number: {{ docket_entry.entry_number }}{% if rd.attachment_number %}-{{ rd.attachment_number }}{% endif %}
Date Filed: {% if docket_entry.datetime_filed %}{{ docket_entry.datetime_filed|datetime_in_utc|date:"M j, Y" }}{% else %}{{ docket_entry.date_filed|date:"M j, Y"|default:'Unknown' }}{% endif %}
Date Filed: {% if docket_entry.datetime_filed %}{{ docket_entry.datetime_filed|utc|date:"M j, Y T" }}{% else %}{{ docket_entry.date_filed|date:"M j, Y"|default:'Unknown' }}{% endif %}
Description: {% if rd.description %}{{ rd.description|safe|wordwrap:80 }}{% else %}{{ docket_entry.description|default:"Unknown docket entry description"|safe|wordwrap:80 }}{% endif %}
View Document: https://www.courtlistener.com{{document_url}}
~~~
Expand Down

0 comments on commit 74215f3

Please sign in to comment.