Skip to content

Commit

Permalink
Merge pull request #19 from sumesh-aot/online_appointment
Browse files Browse the repository at this point in the history
Changes for email service and job
  • Loading branch information
sumesh-aot authored May 1, 2020
2 parents ddb5cde + 7c55fa4 commit 883b879
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion api/app/utilities/email.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def is_valid_email(email: str):

def formatted_date(dt: datetime, timezone):
dt_local = dt.astimezone(pytz.timezone(timezone.timezone_name))
return dt_local.strftime('%Y-%m-%d at %I:%M %p')
return dt_local.strftime('%B %d, %Y at %I:%M %p')


def get_duration(start_time: datetime, end_time: datetime):
Expand Down
2 changes: 1 addition & 1 deletion api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class BaseConfig(object):
MAIL_USE_SSL = False
MAIL_USERNAME = os.getenv('MAIL_USERNAME', None)
MAIL_PASSWORD = os.getenv('MAIL_PASSWORD', None)
MAIL_FROM_ID = os.getenv('MAIL_FROM_ID', 'sbc@gov.bc.ca')
MAIL_FROM_ID = os.getenv('MAIL_FROM_ID', 'donotreply@gov.bc.ca')

# Email variables
EMAIL_APPOINTMENT_APP_URL = os.getenv('EMAIL_APPOINTMENT_APP_URL', None)
Expand Down
2 changes: 1 addition & 1 deletion api/email_templates/delete_email.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
</p>

<p class="text-content">
To rebook your appointment, please visit Service BC Book an Appointment and sign in.
To re-book your appointment, please visit Service BC Book an Appointment and sign in.
</p>
<div style="margin-top: 45px;">
<!--[if mso]> <v:roundrect xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="urn:schemas-microsoft-com:office:word" href="{{ url }}" style="height:30px; v-text-anchor:middle; width:300px;" arcsize="10%" stroke="f" fillcolor="#003366" alias="CTA1">Book an Appointment with Service BC<w:anchorlock/> <center> <![endif]-->
Expand Down

0 comments on commit 883b879

Please sign in to comment.