#7: added custom datetime serializer