Skip to content

Commit

Permalink
Merge pull request #185 from joelbcastillo/bugfix/OP-1063
Browse files Browse the repository at this point in the history
Bugfix/OP-1063: Fix to Unformatted Date in Add File Email
  • Loading branch information
joelbcastillo authored Jan 27, 2017
2 parents 076257b + c25cf85 commit 08b0357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/response/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1203,7 +1203,7 @@ def send_file_email(request_id, release_public_links, release_private_links, pri
agency_name = Requests.query.filter_by(id=request_id).first().agency.name
requester_email = Requests.query.filter_by(id=request_id).one().requester.email
if release_public_links or release_private_links:
release_date = get_release_date(datetime.utcnow(), RELEASE_PUBLIC_DAYS, tz_name)
release_date = get_release_date(datetime.utcnow(), RELEASE_PUBLIC_DAYS, tz_name).strftime("%A, %B %d, %Y")
email_content_requester = email_content.replace(replace_string,
render_template('email_templates/response_file_links.html',
release_public_links=release_public_links,
Expand Down
5 changes: 4 additions & 1 deletion app/templates/email_templates/email_edit_response.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
<p style="padding-left: 30px;"> {{ response_data.data_new[key] }} </p>
{% endfor %}
</div>
<br/>
{% endif %}
{% if agency %}
{% for key, value in response_data.data_old.items() %}
Expand All @@ -53,4 +52,8 @@
{% endfor %}
{% endif %}
{% endif %}
<p>
Please visit <a href='{{ page }}'>{{ page }}</a> to view additional information and take any necessary action.
</p>
<p><br></p>
{% endblock %}

0 comments on commit 08b0357

Please sign in to comment.