diff options
| author | Tavares André <tavares_and@hotmail.com> | 2015-05-18 20:37:29 +0200 |
|---|---|---|
| committer | Tavares André <tavares_and@hotmail.com> | 2015-05-18 20:37:29 +0200 |
| commit | 132a40a673f95a5b0e4722491abcd6a7db6236c8 (patch) | |
| tree | ec8d321e01a16aa468d6e2952c99e6e7b2937526 /MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs | |
| parent | deb6e5a2ee11868491caaf57a16038e37836b29b (diff) | |
Fix runtime display
Diffstat (limited to 'MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs')
| -rw-r--r-- | MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs b/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs index ad1b1e1a6..af6dc997c 100644 --- a/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs +++ b/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs @@ -133,10 +133,10 @@ namespace MediaBrowser.Api.Reports /// <summary> Gets runtime date time. </summary> /// <param name="runtime"> The runtime. </param> /// <returns> The runtime date time. </returns> - protected DateTime? GetRuntimeDateTime(long? runtime) + protected double? GetRuntimeDateTime(long? runtime) { if (runtime.HasValue) - return new DateTime(runtime.Value); + return Math.Ceiling(new TimeSpan(runtime.Value).TotalMinutes); return null; } |
