Series/Index wired up to backbone, just need to add DT

This commit is contained in:
Mark McDowall
2013-02-10 02:28:56 -08:00
committed by kay.one
parent 84fbfb5d48
commit 796f63680a
17 changed files with 265 additions and 26 deletions

View File

@@ -0,0 +1,20 @@
using System;
using System.Collections.Generic;
using System.Linq;
using AutoMapper;
using NzbDrone.Api.QualityProfiles;
using NzbDrone.Core.Repository.Quality;
namespace NzbDrone.Api.Resolvers
{
public class NullableDatetimeToString : ValueResolver<DateTime?, String>
{
protected override String ResolveCore(DateTime? source)
{
if(!source.HasValue)
return String.Empty;
return source.Value.ToString("yyyy-MM-dd");
}
}
}