Better fix for LastWiki

This commit is contained in:
Harry 2014-12-18 15:19:58 -04:00
parent 6516dac271
commit 03e36191ab

View File

@ -26,11 +26,10 @@ internal static LastWiki ParseJToken(JToken token)
Content = token.Value<string>("content").Trim(), Content = token.Value<string>("content").Trim(),
YearFormed = token.Value<int>("yearformed") YearFormed = token.Value<int>("yearformed")
}; };
try
{ if (!string.IsNullOrEmpty(token.Value<string>("published")))
wiki.Published = token.Value<DateTime>("published"); wiki.Published = token.Value<DateTime>("published");
}
catch { }
return wiki; return wiki;
} }
} }