You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Calls to string.Format in the DateTimeConverter does not make use of DATE_TIME_CULTURE_INFO, the decoder does use is. Result is this will only work if encoding party uses the expected cultureinfo
See ex public static string Convert(System.DateTime dt, TimeStampPrecision precision ) line 242, should be:
public static string Convert(System.DateTime dt, TimeStampPrecision precision )
{
if (precision == TimeStampPrecision.Nanosecond)
{
return string.Format(DATE_TIME_CULTURE_INFO, DATE_TIME_FORMAT_WITH_NANOSECONDS, dt, dt.SubsecondAsNanoseconds());
}
else
{
var format = DATE_TIME_PRECISION_TO_FORMAT[precision];
return string.Format(DATE_TIME_CULTURE_INFO, format, dt);
}
}
The text was updated successfully, but these errors were encountered:
Calls to string.Format in the DateTimeConverter does not make use of DATE_TIME_CULTURE_INFO, the decoder does use is. Result is this will only work if encoding party uses the expected cultureinfo
See ex public static string Convert(System.DateTime dt, TimeStampPrecision precision ) line 242, should be:
public static string Convert(System.DateTime dt, TimeStampPrecision precision )
{
if (precision == TimeStampPrecision.Nanosecond)
{
return string.Format(DATE_TIME_CULTURE_INFO, DATE_TIME_FORMAT_WITH_NANOSECONDS, dt, dt.SubsecondAsNanoseconds());
}
else
{
var format = DATE_TIME_PRECISION_TO_FORMAT[precision];
return string.Format(DATE_TIME_CULTURE_INFO, format, dt);
}
}
The text was updated successfully, but these errors were encountered: