Skip to content

Commit

Permalink
Content Update Checking #49
Browse files Browse the repository at this point in the history
  • Loading branch information
KevinJump committed May 5, 2016
1 parent b0e0e28 commit 7ebfca0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Jumoo.uSync.Core/Serializers/ContentSerializer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -159,13 +159,13 @@ public override bool IsUpdate(XElement node)
return true;

DateTime updateTime = node.Attribute("updated").ValueOrDefault(DateTime.Now);
if (DateTime.Compare(updateTime, item.UpdateDate) <= 0)
if ((updateTime - item.UpdateDate).TotalSeconds > 1)
{
return false;
return true;
}
else
{
return true;
return false;
}

}
Expand Down

0 comments on commit 7ebfca0

Please sign in to comment.