diff --git a/src/BizHawk.Common/PropertyGridConverters/BizDateTimeConverter.cs b/src/BizHawk.Common/PropertyGridConverters/BizDateTimeConverter.cs index 1b6ec45724..71a5766624 100644 --- a/src/BizHawk.Common/PropertyGridConverters/BizDateTimeConverter.cs +++ b/src/BizHawk.Common/PropertyGridConverters/BizDateTimeConverter.cs @@ -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 } } }