diff --git a/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs b/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs
index ad1b1e1a6e..af6dc997c2 100644
--- a/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs
+++ b/MediaBrowser.Api/Reports/Common/ReportBuilderBase.cs
@@ -133,10 +133,10 @@ namespace MediaBrowser.Api.Reports
/// Gets runtime date time.
/// The runtime.
/// The runtime date time.
- 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;
}
diff --git a/MediaBrowser.Api/Reports/Common/ReportFieldType.cs b/MediaBrowser.Api/Reports/Common/ReportFieldType.cs
index 9ecbfc326a..58523657aa 100644
--- a/MediaBrowser.Api/Reports/Common/ReportFieldType.cs
+++ b/MediaBrowser.Api/Reports/Common/ReportFieldType.cs
@@ -13,6 +13,7 @@ namespace MediaBrowser.Api.Reports
DateTime,
Int,
Image,
- Object
+ Object,
+ Minutes
}
}
diff --git a/MediaBrowser.Api/Reports/Common/ReportHelper.cs b/MediaBrowser.Api/Reports/Common/ReportHelper.cs
index 306b3e7493..a557248c61 100644
--- a/MediaBrowser.Api/Reports/Common/ReportHelper.cs
+++ b/MediaBrowser.Api/Reports/Common/ReportHelper.cs
@@ -87,6 +87,8 @@ namespace MediaBrowser.Api.Reports
return string.Format("{0:t}", value);
case ReportFieldType.DateTime:
return string.Format("{0:d}", value);
+ case ReportFieldType.Minutes:
+ return string.Format("{0}mn", value);
case ReportFieldType.Int:
return string.Format("", value);
default:
diff --git a/MediaBrowser.Api/Reports/Data/ReportBuilder.cs b/MediaBrowser.Api/Reports/Data/ReportBuilder.cs
index 7317654f28..00ce183178 100644
--- a/MediaBrowser.Api/Reports/Data/ReportBuilder.cs
+++ b/MediaBrowser.Api/Reports/Data/ReportBuilder.cs
@@ -403,7 +403,7 @@ namespace MediaBrowser.Api.Reports
case HeaderMetadata.Runtime:
column = (i, r) => this.GetRuntimeDateTime(i.RunTimeTicks);
- reportHeader.HeaderFieldType = ReportFieldType.Time;
+ reportHeader.HeaderFieldType = ReportFieldType.Minutes;
reportHeader.SortField = "Runtime,SortName";
break;