- Code: Select all
@@ -2528,7 +2534,7 @@ PlayerIOErrorCode = {
target[key] = val.bytearray;
target[key].bytearray = true;
break;
- case _pio.ValueType.DateTime: target[key] = new Date((val.datetime || 0) * 1000); break;
+ case _pio.ValueType.DateTime: target[key] = new Date(val.datetime || 0); break;
case _pio.ValueType.Array:
var arr = target[key] instanceof Array ? target[key] : [];
_pio.bigDBDeserialize(val.arrayproperties, arr, false);
I'd like to add that a Date() object is formatted as the users local timezone.
I haven't determined whether this conflicts with DatabaseObject serialization.