Fixes so that the Date object is parsed correctly as a DateTime object instead of a double, same as amfphp.