fixes #502 - Add date added to edit page
This commit is contained in:
parent
4f53d2fd23
commit
765884efb4
|
@ -222,6 +222,11 @@ namespace MediaBrowser.Api
|
||||||
item.Studios = request.Studios.Select(x => x.Name).ToList();
|
item.Studios = request.Studios.Select(x => x.Name).ToList();
|
||||||
item.People = request.People.Select(x => new PersonInfo { Name = x.Name, Role = x.Role, Type = x.Type }).ToList();
|
item.People = request.People.Select(x => new PersonInfo { Name = x.Name, Role = x.Role, Type = x.Type }).ToList();
|
||||||
|
|
||||||
|
if (request.DateCreated.HasValue)
|
||||||
|
{
|
||||||
|
item.DateCreated = request.DateCreated.Value.ToUniversalTime();
|
||||||
|
}
|
||||||
|
|
||||||
item.EndDate = request.EndDate.HasValue ? request.EndDate.Value.ToUniversalTime() : (DateTime?)null;
|
item.EndDate = request.EndDate.HasValue ? request.EndDate.Value.ToUniversalTime() : (DateTime?)null;
|
||||||
item.PremiereDate = request.PremiereDate.HasValue ? request.PremiereDate.Value.ToUniversalTime() : (DateTime?)null;
|
item.PremiereDate = request.PremiereDate.HasValue ? request.PremiereDate.Value.ToUniversalTime() : (DateTime?)null;
|
||||||
item.ProductionYear = request.ProductionYear;
|
item.ProductionYear = request.ProductionYear;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user