From b019ee5f75eca59d3951031f85fa78acb02c3515 Mon Sep 17 00:00:00 2001 From: Mahbub Ul Alam Date: Tue, 10 Dec 2024 13:48:50 +0100 Subject: [PATCH] SS-698 set default time zone to stockholm time (#263) Source: https://scilifelab.atlassian.net/browse/SS-698 1. Set default time zone to Stockholm time. 2. Mention it as tooltip info besides app info in /projects page. --- projects/views.py | 1 + studio/settings.py | 1 - templates/projects/partials/app_instances_table.html | 7 +++++-- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/projects/views.py b/projects/views.py index 27d03a48..81a9b526 100644 --- a/projects/views.py +++ b/projects/views.py @@ -537,6 +537,7 @@ def get(self, request, project_slug): "title": category.name, "instances": instances_per_category_list, "apps": apps_per_category, + "timezone": "Europe/Stockholm Timezone", } ) diff --git a/studio/settings.py b/studio/settings.py index 52232bdb..730f6f20 100644 --- a/studio/settings.py +++ b/studio/settings.py @@ -287,7 +287,6 @@ # https://docs.djangoproject.com/en/3.2/topics/i18n/ LANGUAGE_CODE = "en-us" - USE_I18N = True # Timezone settings diff --git a/templates/projects/partials/app_instances_table.html b/templates/projects/partials/app_instances_table.html index 62e02084..559191f8 100644 --- a/templates/projects/partials/app_instances_table.html +++ b/templates/projects/partials/app_instances_table.html @@ -1,5 +1,4 @@ {% load static %} - @@ -40,7 +39,11 @@ {% else %} {% endif %} - +