mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 19:48:25 -04:00
code review feedback
This commit is contained in:
@@ -282,7 +282,7 @@ def set_timezone():
|
|||||||
# Cookie is set in dashboard.html on page load
|
# Cookie is set in dashboard.html on page load
|
||||||
try:
|
try:
|
||||||
timezone = request.cookies.get("timezone", "US/Eastern")
|
timezone = request.cookies.get("timezone", "US/Eastern")
|
||||||
current_app.logger.debug(f"User's timezone is {timezone}")
|
current_app.logger.debug(hilite(f"User's timezone is {timezone}"))
|
||||||
serialized_user = current_user.serialize()
|
serialized_user = current_user.serialize()
|
||||||
if serialized_user["preferred_timezone"] is not timezone:
|
if serialized_user["preferred_timezone"] is not timezone:
|
||||||
current_user.update(preferred_timezone=timezone)
|
current_user.update(preferred_timezone=timezone)
|
||||||
|
|||||||
@@ -7,13 +7,11 @@
|
|||||||
|
|
||||||
{% block service_page_title %}
|
{% block service_page_title %}
|
||||||
Dashboard
|
Dashboard
|
||||||
|
|
||||||
<script type="text/javascript" src="{{ asset_url('js/setTimezone.js') }}"></script>
|
|
||||||
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block maincolumn_content %}
|
{% block maincolumn_content %}
|
||||||
|
<script type="text/javascript" src="{{ asset_url('js/setTimezone.js') }}"></script>
|
||||||
|
|
||||||
|
|
||||||
<div class="dashboard margin-bottom-2">
|
<div class="dashboard margin-bottom-2">
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user