Fix: DATETIMEOFFSET data types should be ISO formatted (#714)

This commit is contained in:
2018-10-22 19:46:02 -04:00
committed by Karl Burtram
parent 5ab904dd1c
commit 2966a53b70
2 changed files with 10 additions and 1 deletions

View File

@@ -420,6 +420,11 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution.DataStorage
long dtTicks = BitConverter.ToInt64(buffer, 0);
long dtOffset = BitConverter.ToInt64(buffer, 8);
return new DateTimeOffset(new DateTime(dtTicks), new TimeSpan(dtOffset));
}, null, dt =>
{
string formatString = $"{DateFormatString} {TimeFormatString}.fffffff zzz";
return dt.ToString(formatString);
});
}