Read a post's date as the Berlin calendar day, not the raw UTC day

This commit is contained in:
tleininger committed 2026-09-24 09:11:37 +02:00
1 parent aef05fb090
commit 6d3260db49
6 files changed
+76 -8

No files matched your search

+3 -1
View File
@@ -83,7 +83,8 @@ public sealed class PocketBaseClient(HttpClient http)
=> GetRecordsAsync<Faq>("faqs", "topic", ct);
/// <summary>
/// Creates the serializer options with both wall-clock date converters registered.
/// Creates the serializer options with the date converters registered: the
/// wall-clock ones for points in time and the calendar-day one for plain dates.
/// </summary>
/// <returns>
/// The configured options.
@@ -96,6 +97,7 @@ public sealed class PocketBaseClient(HttpClient http)
};
options.Converters.Add(new LocalDateTimeConverter());
options.Converters.Add(new NullableLocalDateTimeConverter());
options.Converters.Add(new DateOnlyConverter());
return options;
}