mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Series/Index wired up to backbone, just need to add DT
This commit is contained in:
parent
84fbfb5d48
commit
796f63680a
17 changed files with 265 additions and 26 deletions
20
NzbDrone.Api/Resolvers/NullableDatetimeToString.cs
Normal file
20
NzbDrone.Api/Resolvers/NullableDatetimeToString.cs
Normal 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");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue