all tests passing

This commit is contained in:
Shannon
2016-04-27 16:37:57 +02:00
parent e42ac644a3
commit f992c47111
5 changed files with 53 additions and 29 deletions

View File

@@ -628,15 +628,9 @@ namespace Umbraco.Web.PublishedCache.XmlPublishedCache
{
if (LoadedFromExamine)
{
try
{
//we might need to parse the date time using Lucene converters
return DateTools.StringToDate(val);
}
catch (FormatException)
{
//swallow exception, its not formatted correctly so revert to just trying to parse
}
//we need to parse the date time using Lucene converters
var ticks = long.Parse(val);
return new DateTime(ticks);
}
return DateTime.Parse(val);