[managed][client][offline] Fixed broken tests due to datetime encoding