private function convertDateKeysInObjects($object)
	{
		// only hanlde objects
		if (!is_object($object))
		{
			return $object;
		}

		// spin over each key replacing the date with new format
		foreach (array_keys(get_object_vars($object)) as $key)
		{
			if (in_array($key, $this->dateKeys))
			{
				$object->$key = with(new Date($object->$key))->format('Y-m-d\TH:i:s\Z');
			}
		}

		// return object
		return $object;
	}
private function convertDateKeysInObjects($object)
	{
		// only hanlde objects
		if (!is_object($object))
		{
			return $object;
		}

		// spin over each key replacing the date with new format
		foreach (array_keys(get_object_vars($object)) as $key)
		{
			if (in_array($key, $this->dateKeys))
			{
				$object->$key = with(new Date($object->$key))->format('Y-m-d\TH:i:s\Z');
			}
		}

		// return object
		return $object;
	}
private function convertDateKeysInObjects ( $ object ) { // only hanlde objects if ( ! is_object ( $ object ) ) { return $ object ; } // spin over each key replacing the date with new format foreach ( array_keys ( get_object_vars ( $ object ) ) as $ key ) { if ( in_array ( $ key , $ this -> dateKeys ) ) { $ object -> $ key = with ( new Date ( $ object -> $ key ) ) -> format ( 'Y-m-d\TH:i:s\Z' ) ; } } // return object return $ object ; }
Convert dates from SQL format to ISO 8601

@param   mixed  $object  Convert date keys
@return  mixed  Converted object
Convert dates from SQL format to ISO 8601