diff --git a/stackalytics/dashboard/decorators.py b/stackalytics/dashboard/decorators.py index 19e3854e6..7ef2c3e41 100644 --- a/stackalytics/dashboard/decorators.py +++ b/stackalytics/dashboard/decorators.py @@ -443,8 +443,10 @@ def templated(template=None, return_code=200): stackalytics_version.version_info.version_string()) ctx['stackalytics_release'] = ( stackalytics_version.version_info.release_string()) - ctx['runtime_storage_update_time'] = ( - vault_inst['runtime_storage_update_time']) + update_time = vault_inst['runtime_storage_update_time'] + ctx['runtime_storage_update_time'] = update_time + ctx['runtime_storage_update_time_str'] = helpers.format_datetime( + update_time) if update_time else None # deprecated -- top mentor report ctx['review_nth'] = parameters.get_single_parameter( diff --git a/stackalytics/dashboard/helpers.py b/stackalytics/dashboard/helpers.py index 912f3f219..5d3e43f3a 100644 --- a/stackalytics/dashboard/helpers.py +++ b/stackalytics/dashboard/helpers.py @@ -221,7 +221,7 @@ def get_contribution_summary(records): def format_datetime(timestamp): return datetime.datetime.utcfromtimestamp( - timestamp).strftime('%d %b %Y %H:%M:%S') + timestamp).strftime('%d %b %Y %H:%M:%S') + ' UTC' def format_date(timestamp): diff --git a/stackalytics/dashboard/templates/layout.html b/stackalytics/dashboard/templates/layout.html index acc1dcdc6..e07a3d7bc 100644 --- a/stackalytics/dashboard/templates/layout.html +++ b/stackalytics/dashboard/templates/layout.html @@ -25,10 +25,13 @@ Stackalytics {% if page_title %}| {{ page_title }} {% endif %}
{% if not runtime_storage_update_time %} + {% set update_time_title = '' %} + {% else %} + {% set update_time_title = 'Last updated on ' + runtime_storage_update_time_str %} {% endif %}
- About + About