Forum BigDB DateTime values in DatabaseObjects/DatabaseArrays are broken

Discussion and help relating to the PlayerIO database solution, BigDB.

DateTime values in DatabaseObjects/DatabaseArrays are broken

Postby hangar » September 16th, 2014, 7:23 am

I get "The Date must be a reasonable value!" whenever I attempt to store a DateTime in the latest version of the SDK (v3.0.12). This happens in unity, C# standalone and when I make a local server build. Does not seem to matter what value I use.
hangar
 
Posts: 8
Joined: September 16th, 2014, 7:00 am

Re: DateTime values in DatabaseObjects/DatabaseArrays are br

Postby hangar » September 16th, 2014, 7:27 am

I'm mistaken. It only seems to happen with DateTime.MinValue and DateTime.MaxValue.
hangar
 
Posts: 8
Joined: September 16th, 2014, 7:00 am

Re: DateTime values in DatabaseObjects/DatabaseArrays are br

Postby hangar » September 16th, 2014, 10:29 pm

It's still a problem though. Are we not allowed to use DateTime.MinValue and DateTime.MaxValue anymore?
hangar
 
Posts: 8
Joined: September 16th, 2014, 7:00 am

Re: DateTime values in DatabaseObjects/DatabaseArrays are br

Postby zapleaf » October 29th, 2014, 4:15 am

I'm actually using DateTime in my code without any issues, though I've not tried any calls to MinValue or MaxValue. Do you have an example of your code and I can see if you might be doing something incorrectly.
zapleaf
 
Posts: 16
Joined: August 13th, 2013, 12:31 pm

Re: DateTime values in DatabaseObjects/DatabaseArrays are br

Postby hangar » October 29th, 2014, 7:59 pm

Our code is pretty complex, but the following triggers it:

Code: Select all
DatabaseObject obj = new DatabaseObject();
obj.SetValue("foo", DateTime.MinValue);
hangar
 
Posts: 8
Joined: September 16th, 2014, 7:00 am


Return to BigDB



cron