[Solved] FormatException: String was not recognized as a valid DateTime.

Hello. I have this error every time when i start game in editor:

Game work normaly

@GLeBaTi

Thank you for reporting this issue. I have passed it along to our engineers and I will let you know what they find.

The fix for this issue will be in a future version of the IAP plugin.

In the meantime, a workaround would be to clear your PlayerPrefs. That should clear the error and allow you to open your game again:

I apologize for the inconvenience this issue has caused.

3 Likes

So was this fixed in 1.10.1? That’s the latest right? I’ve updated to that version and I’m on Unity 5.6.0f3, and I’m seeing that error but only on my build machine when I do a build through Buildbot (the CI software I’m running). I’ve removed the player prefs but the error is still happening.

Edit: Actually, looking at the decompiled source for the IAP update code, I can’t see how this would be happening. And in fact it only happens when the build runs from inside Buildbot, and not when I manually run the exact same command-line that Buildbot runs at the build server shell.

Urgh I’m not sure what’s going on here. I remove the prefs file from ~/Library/Preferences, and every time the build runs, the IAP updater seems to write the PackageUpdaterLastChecked key with the exact same timestamp from earlier today when I first started debugging this issue (this is on macOS by the way).

And now somewhere in amongst patching the IAP DLL to not do the update check, restarting Buildbot, and undoing the IAP DLL patch, it seems to be working fine. ARGH. One of those days…