Skip to content

Commit

Permalink
SS-698 set default time zone to stockholm time (#263)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
anondo1969 authored Dec 10, 2024
1 parent 43c8fd7 commit b019ee5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
)

Expand Down
1 change: 0 additions & 1 deletion studio/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,6 @@
# https://docs.djangoproject.com/en/3.2/topics/i18n/

LANGUAGE_CODE = "en-us"

USE_I18N = True

# Timezone settings
Expand Down
7 changes: 5 additions & 2 deletions templates/projects/partials/app_instances_table.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{% load static %}

<table id=""
class="table table-hover my-0 no-footer table-bordered" role="grid">
<thead>
Expand Down Expand Up @@ -40,7 +39,11 @@
{% else %}
<td class="sorting_1">{{ instance.name }}</td>
{% endif %}
<td class="d-none d-xxl-table-cell">{{ instance.created_on | date:"d/n/y H:i" }}</td>
<td class="d-none d-xxl-table-cell">{{ instance.created_on | date:"d/n/y H:i" }}
<span
class="bi bi-clock" data-bs-toggle="tooltip" data-bs-placement="right" data-bs-original-title="{{ objs.timezone }}">
</span>
</td>
<td>
<span class="badge bg-secondary" id="status-{{ instance.app.slug }}-{{ instance.pk }}">
{{ instance.app_status.status }}
Expand Down

0 comments on commit b019ee5

Please sign in to comment.