update datetime naming

This commit is contained in:
Beverly Nguyen
2024-03-08 11:43:54 -08:00
parent ee5fe38001
commit b1b416db8c
3 changed files with 5 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ from app.formatters import (
format_datetime_normal, format_datetime_normal,
format_datetime_relative, format_datetime_relative,
format_datetime_short, format_datetime_short,
format_datetime_short_12h, format_datetime_text,
format_datetime_short_america, format_datetime_short_america,
format_day_of_week, format_day_of_week,
format_delta, format_delta,
@@ -554,7 +554,7 @@ def add_template_filters(application):
format_datetime_24h, format_datetime_24h,
format_datetime_normal, format_datetime_normal,
format_datetime_short, format_datetime_short,
format_datetime_short_12h, format_datetime_text,
format_datetime_short_america, format_datetime_short_america,
valid_phone_number, valid_phone_number,
linkable_name, linkable_name,

View File

@@ -98,7 +98,7 @@ def format_datetime_short(date):
) )
def format_datetime_short_12h(date): def format_datetime_text(date):
# example: February 20, 2024 at 07:00 PM US/Eastern # example: February 20, 2024 at 07:00 PM US/Eastern
return "{} at {} {}".format( return "{} at {} {}".format(
format_date_normal(date), format_time_12h(date), get_user_preferred_timezone() format_date_normal(date), format_time_12h(date), get_user_preferred_timezone()

View File

@@ -27,7 +27,7 @@
<div class="usa-alert__body"> <div class="usa-alert__body">
<h4 class="usa-alert__heading">Your text has been scheduled</h4> <h4 class="usa-alert__heading">Your text has been scheduled</h4>
<p class="usa-alert__text"> <p class="usa-alert__text">
{{ job.template_name }} - {{ current_service.name }} was scheduled on {{ job.scheduled_for|format_datetime_short_12h }} by {{ job.created_by.name }} {{ job.template_name }} - {{ current_service.name }} was scheduled on {{ job.scheduled_for|format_datetime_text }} by {{ job.created_by.name }}
</p> </p>
</div> </div>
</div> </div>
@@ -37,7 +37,7 @@
<div class="usa-alert__body"> <div class="usa-alert__body">
<h4 class="usa-alert__heading">Your text has been sent</h4> <h4 class="usa-alert__heading">Your text has been sent</h4>
<p class="usa-alert__text"> <p class="usa-alert__text">
{{ job.template_name }} - {{ current_service.name }} was sent on {{ job.created_at|format_datetime_short_12h }} by {{ job.created_by.name }} {{ job.template_name }} - {{ current_service.name }} was sent on {{ job.created_at|format_datetime_text }} by {{ job.created_by.name }}
</p> </p>
</div> </div>
</div> </div>