Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Roland Geider
2025-08-28 22:25:11 +02:00
committed by GitHub
parent 92295c54b8
commit 99580490d3

View File

@@ -56,7 +56,7 @@ String? dateToYYYYMMDD(DateTime? dateTime) {
/// Convert a date to UTC and then to an ISO8601 string.
///
/// This makes sure that the serialized data has correct timezone information.
/// Otherwise the django backend will possible treat the date as local time,
/// Otherwise the django backend will possibly treat the date as local time,
/// which will not be correct in most cases.
String dateToUtcIso8601(DateTime dateTime) {
return dateTime.toUtc().toIso8601String();