diff --git a/sapl/painel/views.py b/sapl/painel/views.py index 4f1653269..8c332b7d7 100644 --- a/sapl/painel/views.py +++ b/sapl/painel/views.py @@ -290,7 +290,10 @@ def votante_view(request): @user_passes_test(check_permission) def painel_view(request, pk): - context = {'head_title': str(_('Painel Plenário')), 'sessao_id': pk} + now = timezone.localtime(timezone.now()) + utc_offset = now.utcoffset().total_seconds() / 60 + + context = {'head_title': str(_('Painel Plenário')), 'sessao_id': pk, 'utc_offset': utc_offset } return render(request, 'painel/index.html', context) diff --git a/sapl/templates/painel/index.html b/sapl/templates/painel/index.html index a7d08aeda..3df4d5861 100644 --- a/sapl/templates/painel/index.html +++ b/sapl/templates/painel/index.html @@ -33,7 +33,6 @@ } } -
@@ -110,7 +109,6 @@ - @@ -124,24 +122,36 @@ {% endblock webpack_loader_chunks_js %}