Seddryck / NBi

NBi is a testing framework (add-on to NUnit) for Business Intelligence and Data Access. The main goal of this framework is to let users create tests with a declarative approach based on an Xml syntax. By the means of NBi, you don't need to develop C# or Java code to specify your tests! Either, you don't need Visual Studio or Eclipse to compile your test suite. Just create an Xml file and let the framework interpret it and play your tests. The framework is designed as an add-on of NUnit but with the possibility to port it easily to other testing frameworks.
http://www.nbi.io
Apache License 2.0
107 stars 37 forks source link

Support additional RFC for casting DateTime #661

Open Seddryck opened 2 years ago

Seddryck commented 2 years ago

Accepts a string in RFC3339 / ISO8601 standard format and some variants and converts it to a DateTime. In addition to RFC3339 / ISO8601 standard timestamps, it also accepts strings that use a space to separate the date and time as well as strings that have no explicit timezone offset.

It's potentially introducing a breaking change on how Offset is managed. The type dateTime shouldn't care about the local offset information. In version 1.x, if the offset was not specified, it was assumed to be a local time and settings of the computer regarding the offset were used. Then all the values where converted to a local time. This was an issue regarding the fundamental design principal driving this framework of being agnostic of local settings.

2020-09-08T13:42:29.190855+00:00
2020-09-08T13:42:29.190855Z
2020-09-08T13:42:29Z
2020-09-08T13:42:29.190855-05:00
2020-09-08 13:42:29.190855+00:00
2020-09-08 13:42:29.190855Z
2020-09-08 13:42:29Z
2020-09-08 13:42:29.190855-05:00