The serializer should also be able to handle datetime objects