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
Issue is this function calls DateTime.TryParseExact() with a null format provider. The parse therefore can only succeed if the current culture uses the same separators as the file containing the metadata. From a quick review it looks to me like the intent is to perform invariant parsing, in which case the fix would be to pass CultureInfo.InvariantCulture rather than null.
Workaround is to reimplement the method's code. Personally, I hit this on Arabic so setting CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("ar") on a test thread should provide repro.
The text was updated successfully, but these errors were encountered:
Issue is this function calls DateTime.TryParseExact() with a null format provider. The parse therefore can only succeed if the current culture uses the same separators as the file containing the metadata. From a quick review it looks to me like the intent is to perform invariant parsing, in which case the fix would be to pass CultureInfo.InvariantCulture rather than null.
Workaround is to reimplement the method's code. Personally, I hit this on Arabic so setting CultureInfo.CurrentCulture = CultureInfo.GetCultureInfo("ar") on a test thread should provide repro.
The text was updated successfully, but these errors were encountered: