Search code examples
breezetimespanbreeze-sharp

BreezeSharp client and the TimeSpan issue


We're unable to re-hydrate the Breeze# client object which has TimeSpan? properties and if prop value is not null

BreezeServer returns the TimeSpan in the ISO 8601 format (eq. "PT8H") but as TimeSpan.Parse() expects different format [ws][-]{ d | [d.]hh:mm[:ss[.ff]] }[ws] a System.FormatException is thrown ("String was not recognized as a valid TimeSpan") in the Breeze.Sharp.JsonEntityConverter while parsing objects.

Is this a known issue? IS there any workaround for it?


Solution

  • Ok, this was a bug and has been fixed in the lastest version on the breeze.sharp GitHub repo, it will also go out in the next release, probably sometime next week. Please confirm whether or not it corrects your issue.