Carapacik / swagger_parser

Dart package that takes an OpenApi definition file and generates REST clients based on retrofit and data classes for your project.
https://pub.dev/packages/swagger_parser
MIT License
87 stars 33 forks source link

DateTime format cuts time offset #213

Open MsProfanum opened 3 months ago

MsProfanum commented 3 months ago

The current toIso8601String() returns the time without the offset which causes problems when the backend requires it and cuts the information about the time offset when converting, for example, to utc format.

Possible solution Option to choose in the parser which option would the user want to choose and adding custom toIso8601StringWithOffset() method that adds offset at the end of the converted DateTime.