Post #2686027
2026-04-21 21:23 UTC
@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
Replies (2)
-
@stevestreza@indieweb.social 2026-04-21 21:27
@ashfurrow@tenforward.social @brunoph@breakpoint.cafe I recall something like this in the codebase on Microsoft Teams and I think it was for this reason, but it was like 5 years ago so I cant say for sure.
-
@brunoph@breakpoint.cafe 2026-04-21 21:37
@ashfurrow@tenforward.social ah actually, I think I had this issue on Mastonaut's date parser! https://github.com/brunophilipe/MastodonKit/blob/724bb42415ca2616a0b11149d19f30e93d61cea0/Sources/MastodonKit/Foundation/DateFormatter.swift#L40