Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DateTime.parse error on IOS #17

Closed
martintrollip opened this issue Nov 8, 2023 · 0 comments · Fixed by #18
Closed

DateTime.parse error on IOS #17

martintrollip opened this issue Nov 8, 2023 · 0 comments · Fixed by #18

Comments

@martintrollip
Copy link
Contributor

On IOS devices where the device settings does not use 24 hour format the following crash is reported

Fatal Exception: FlutterError
FormatException: Invalid date format 2023-11-03 12:57:39 PM

Fatal Exception: FlutterError
0  ???                            0x0 DateTime.parse (dart:core)
1  ???                            0x0 Channel._updateFromMap + 509 (channel.dart:509)
2  ???                            0x0 Channels._updateChannelFromMap + 163 (channels.dart:163)
3  ???                            0x0 ChatClient._parseEvents + 431 (chat_client.dart:431)

This issue is with the AM and PM which is added when formatting dates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant