Post #2686026
2026-04-21 21:20 UTC
@ashfurrow@tenforward.social I recall having issues with date strings that would sometimes have fractional milliseconds and sometimes not, and the same formatter wouldn't be able to decode both, so I had to have a fallback to handle the opposite case. It's been a long while tho, so details are hazy in my memory.
Replies (1)
-
@ashfurrow@tenforward.social 2026-04-21 21:23
@brunoph@breakpoint.cafe that does help, thank you. does this fix look familiar? using an ISO8601DateFormatter specifically. formatOptions = [.withInternetDateTime, .withFractionalSeconds] // try to parse formatOptions = [.withInternetDateTime] // try to parse again