remove invariant culture here

fixes 6e20a3091c
This commit is contained in:
CasualPokePlayer 2023-11-08 10:32:37 -08:00
parent e119bdda39
commit 5ae15c89c3
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ namespace BizHawk.Common
public override object ConvertTo(ITypeDescriptorContext? context, CultureInfo? culture, object? value, Type destinationType)
{
if (value is not DateTime d || destinationType != typeof(string)) throw new NotSupportedException("can only do DateTime --> string");
return d.ToString(DateTimeFormatInfo.InvariantInfo);
#pragma warning disable CA1305
// this function is explicitly supposed to be locale dependent
return d.ToString();
#pragma warning restore CA1305
}
}
}