fix the datetime & date json serialization