DateTimeConverter in Dart Client

Hi,
We started to use the Dart Client for a flutter app we are developing.

When getting data from the api, the result cannot be parsed. We made some investigation to find out what is the source of the issue. We found that the DateTimeConverter in Dart has a Bug, which will remove some parts of the TimeZone Informations in the ISO 8601 String, which then creates an invalid string.

We created some tests in this repository which should help to reproduce the error.
https://github.com/ServiceStack/servicestack-dart/compare/master…dominikheeb:master

Can you submit the PR please?

1 Like

Here is the PR:

thx, should be resolved in this commit which is now available in the latest servicestack v1.0.12.

Note: Dart’s DateTime doesn’t support preserving time zones, it just converts them to UTC.