save dates in xml with local time

This commit is contained in:
Luke Pulverenti 2013-07-17 11:19:28 -04:00
parent 35fcb866ef
commit 243fe97d11
2 changed files with 3 additions and 3 deletions

View File

@ -116,11 +116,11 @@ namespace MediaBrowser.Controller.Entities
if (item.DateCreated == DateTime.MinValue)
{
item.DateCreated = DateTime.Now;
item.DateCreated = DateTime.UtcNow;
}
if (item.DateModified == DateTime.MinValue)
{
item.DateModified = DateTime.Now;
item.DateModified = DateTime.UtcNow;
}
if (!_children.TryAdd(item.Id, item))

View File

@ -159,7 +159,7 @@ namespace MediaBrowser.Providers.Savers
builder.Append("<certification>" + SecurityElement.Escape(item.OfficialRating) + "</certification>");
}
builder.Append("<Added>" + SecurityElement.Escape(item.DateCreated.ToString("G")) + "</Added>");
builder.Append("<Added>" + SecurityElement.Escape(item.DateCreated.ToLocalTime().ToString("G")) + "</Added>");
builder.Append("<LockData>" + item.DontFetchMeta.ToString().ToLower() + "</LockData>");