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.
This commit is contained in:
@@ -90,7 +90,7 @@ func current_study_day_start_utc() -> String:
|
|||||||
"hour": 0, "minute": 0, "second": 0
|
"hour": 0, "minute": 0, "second": 0
|
||||||
})
|
})
|
||||||
var utc_unix: int = local_midnight_unix + utc_offset_minutes * 60
|
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 ----------
|
# ---------- Next card / study session ----------
|
||||||
|
|||||||
Reference in New Issue
Block a user