diff --git a/MediaBrowser.Providers/Savers/EpisodeXmlSaver.cs b/MediaBrowser.Providers/Savers/EpisodeXmlSaver.cs
index 4e2139bb60..b7cfe8aeec 100644
--- a/MediaBrowser.Providers/Savers/EpisodeXmlSaver.cs
+++ b/MediaBrowser.Providers/Savers/EpisodeXmlSaver.cs
@@ -109,7 +109,7 @@ namespace MediaBrowser.Providers.Savers
if (episode.PremiereDate.HasValue)
{
- builder.Append("" + SecurityElement.Escape(episode.PremiereDate.Value.ToString("yyyy-MM-dd")) + "");
+ builder.Append("" + SecurityElement.Escape(episode.PremiereDate.Value.ToLocalTime().ToString("yyyy-MM-dd")) + "");
}
XmlSaverHelpers.AddCommonNodes(item, builder);
diff --git a/MediaBrowser.Providers/Savers/SeriesXmlSaver.cs b/MediaBrowser.Providers/Savers/SeriesXmlSaver.cs
index 131d568a1c..29ca12f7fd 100644
--- a/MediaBrowser.Providers/Savers/SeriesXmlSaver.cs
+++ b/MediaBrowser.Providers/Savers/SeriesXmlSaver.cs
@@ -95,7 +95,7 @@ namespace MediaBrowser.Providers.Savers
if (series.PremiereDate.HasValue)
{
- builder.Append("" + SecurityElement.Escape(series.PremiereDate.Value.ToString("yyyy-MM-dd")) + "");
+ builder.Append("" + SecurityElement.Escape(series.PremiereDate.Value.ToLocalTime().ToString("yyyy-MM-dd")) + "");
}
XmlSaverHelpers.AddCommonNodes(item, builder);
diff --git a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs
index 0a03f98f5c..230dab717b 100644
--- a/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs
+++ b/MediaBrowser.Providers/Savers/XmlSaverHelpers.cs
@@ -252,11 +252,11 @@ namespace MediaBrowser.Providers.Savers
{
if (item is Person)
{
- builder.Append("" + SecurityElement.Escape(item.PremiereDate.Value.ToString("yyyy-MM-dd")) + "");
+ builder.Append("" + SecurityElement.Escape(item.PremiereDate.Value.ToLocalTime().ToString("yyyy-MM-dd")) + "");
}
else if (!(item is Episode))
{
- builder.Append("" + SecurityElement.Escape(item.PremiereDate.Value.ToString("yyyy-MM-dd")) + "");
+ builder.Append("" + SecurityElement.Escape(item.PremiereDate.Value.ToLocalTime().ToString("yyyy-MM-dd")) + "");
}
}
@@ -358,7 +358,7 @@ namespace MediaBrowser.Providers.Savers
}
// Use original runtime here, actual file runtime later in MediaInfo
- var runTimeTicks = item.OriginalRunTimeTicks ?? item.RunTimeTicks;
+ var runTimeTicks = item.RunTimeTicks;
if (runTimeTicks.HasValue)
{