feat: Lokalisierung des Datumsformats auf dem Dashboard

This commit is contained in:
Matthias Nagel 2025-10-01 11:53:56 +02:00
parent 8c388b6ef3
commit 74ff99fe52
3 changed files with 4 additions and 3 deletions

View File

@ -114,7 +114,7 @@ AUTH_PASSWORD_VALIDATORS = [
# Internationalization
# https://docs.djangoproject.com/en/5.2/topics/i18n/
LANGUAGE_CODE = 'en-us'
LANGUAGE_CODE = 'de-de'
TIME_ZONE = 'UTC'

View File

@ -1,4 +1,5 @@
{% extends "base.html" %}
{% load l10n %}
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
@ -17,7 +18,7 @@
<div class="list-group-item list-group-item-action flex-column align-items-start">
<div class="d-flex w-100 justify-content-between">
<h5 class="mb-1">{{ event.title }}</h5>
<small>{{ event.start_time }}</small>
<small>{{ event.start_time|localize }}</small>
</div>
<p class="mb-1">{{ event.description }}</p>
<small>Location: {{ event.location_address }}</small>
@ -32,4 +33,4 @@
{% else %}
<p>No events found for your team.</p>
{% endif %}
{% endblock %}
{% endblock %}