Registration dates are UTC #19

Open
opened 2022-02-24 12:57:48 +01:00 by nik · 3 comments
nik commented 2022-02-24 12:57:48 +01:00 (Migrated from edugit.org)

The registration dates are displayed as UTC. I have not investigated, but I guess the timestamp is saved as a naive datetime instead of a timezone-based datetime.

The registration dates are displayed as UTC. I have not investigated, but I guess the timestamp is saved as a naive datetime instead of a timezone-based datetime.
yuha commented 2024-03-03 16:46:37 +01:00 (Migrated from edugit.org)

created branch 19-registration-dates-are-utc to address this issue

created branch [`19-registration-dates-are-utc`](/Teckids/hacknfun/AlekSIS-App-Paweljong/-/compare/master...19-registration-dates-are-utc) to address this issue
yuha commented 2024-03-03 16:46:41 +01:00 (Migrated from edugit.org)

mentioned in merge request !171

mentioned in merge request !171
yuha commented 2024-03-03 17:47:36 +01:00 (Migrated from edugit.org)

As far as I understand, the DateTime values saved are indeed timezone-aware (see https://docs.djangoproject.com/en/5.0/ref/models/fields/#django.db.models.DateField.auto_now_add), but always set to the configured default timezone

As far as I understand, the DateTime values saved are indeed timezone-aware (see https://docs.djangoproject.com/en/5.0/ref/models/fields/#django.db.models.DateField.auto_now_add), but always set to the configured default timezone
Sign in to join this conversation.
No labels
Doing
To Do
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
teckids/AlekSIS-App-Paweljong#19
No description provided.