save dates in xml with local time
This commit is contained in:
parent
35fcb866ef
commit
243fe97d11
|
@ -116,11 +116,11 @@ namespace MediaBrowser.Controller.Entities
|
||||||
|
|
||||||
if (item.DateCreated == DateTime.MinValue)
|
if (item.DateCreated == DateTime.MinValue)
|
||||||
{
|
{
|
||||||
item.DateCreated = DateTime.Now;
|
item.DateCreated = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
if (item.DateModified == DateTime.MinValue)
|
if (item.DateModified == DateTime.MinValue)
|
||||||
{
|
{
|
||||||
item.DateModified = DateTime.Now;
|
item.DateModified = DateTime.UtcNow;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_children.TryAdd(item.Id, item))
|
if (!_children.TryAdd(item.Id, item))
|
||||||
|
|
|
@ -159,7 +159,7 @@ namespace MediaBrowser.Providers.Savers
|
||||||
builder.Append("<certification>" + SecurityElement.Escape(item.OfficialRating) + "</certification>");
|
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>");
|
builder.Append("<LockData>" + item.DontFetchMeta.ToString().ToLower() + "</LockData>");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user