private object DoTypeSpecificConversion(ArchiveExecutionContext executionContext, ColumnInfo column, object parsedValue) { if (parsedValue != null) { var type = parsedValue.GetType(); if (type == typeof(DateTime)) { if (!executionContext.DateTimeToUTC || column.UseRaw) { parsedValue = (DateTime)parsedValue; } else { parsedValue = _dateTimeConverter.ConvertFromTimeZone(((DateTime)parsedValue).ToUniversalTime()); } } else if (column.PropertyType == typeof(int[])) { //fix for incorrect value from SuperOffice Services if (parsedValue as string == "[A:]") { parsedValue = new int[0]; } } } return(parsedValue); }
private object DoTypeSpecificConversion(ArchiveExecutionContext executionContext, ColumnInfo column, object parsedValue) { if (parsedValue != null) { var type = parsedValue.GetType(); if (type == typeof(DateTime)) { if (!executionContext.DateTimeToUTC && column.UseRaw) { parsedValue = (DateTime)parsedValue; } else { parsedValue = _dateTimeConverter.ConvertFromTimeZone(((DateTime)parsedValue).ToUniversalTime()); } } } return(parsedValue); }