From 15e9f9779e7cefe89f2072e5965e194e46af9773 Mon Sep 17 00:00:00 2001 From: hz Date: Tue, 21 Jul 2026 17:02:51 -0500 Subject: [PATCH] Fix flashcard study/next 400s from a malformed studyDayStartUtc current_study_day_start_utc() passed use_space=true to Time.get_datetime_string_from_unix_time(), producing "2026-07-21 00:00:00Z" (space separator) instead of ISO-8601. The server's System.Text.Json DateTime converter rejects that with a 400, which the client surfaces as a generic "could not be loaded" error - blocking every study session. Confirmed against the live API: the space-separated value 400s, the corrected T-separated value returns a card. --- scripts/autoload/flashcard_service.gd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/autoload/flashcard_service.gd b/scripts/autoload/flashcard_service.gd index ad78fb6..7497090 100644 --- a/scripts/autoload/flashcard_service.gd +++ b/scripts/autoload/flashcard_service.gd @@ -90,7 +90,7 @@ func current_study_day_start_utc() -> String: "hour": 0, "minute": 0, "second": 0 }) var utc_unix: int = local_midnight_unix + utc_offset_minutes * 60 - return "%sZ" % Time.get_datetime_string_from_unix_time(utc_unix, true) + return "%sZ" % Time.get_datetime_string_from_unix_time(utc_unix, false) # ---------- Next card / study session ----------