Do not automatically apply our datetimeoffset binder

This commit is contained in:
nicolas.dorier
2021-05-14 15:46:38 +09:00
parent 6c9c7328bb
commit 9e3d99ec39

View File

@@ -18,12 +18,7 @@ namespace BTCPayServer.ModelBinders
return new PaymentMethodIdModelBinder();
if (context.Metadata.ModelType == typeof(WalletIdModelBinder))
return new ModelBinders.WalletIdModelBinder();
if (typeof(DateTimeOffset).GetTypeInfo().IsAssignableFrom(context.Metadata.ModelType) ||
typeof(DateTimeOffset?).GetTypeInfo().IsAssignableFrom(context.Metadata.ModelType))
{
return new DateTimeOffsetModelBinder();
}
return null;
return null;
}
}
}