diff --git a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs index 955708f5a..d1c3ec0cb 100644 --- a/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs +++ b/mRemoteNG/Config/Connections/SqlConnectionsSaver.cs @@ -172,6 +172,8 @@ namespace mRemoteNG.Config.Connections DbParameter lastUpdateParam = dbQuery.CreateParameter(); lastUpdateParam.ParameterName = "@LastUpdate"; + // Use DBTimeStampNow() instead of DBDate() - the column is datetime type, not string + // DBTimeStampNow() returns the appropriate .NET type (DateTime or MySqlDateTime) for parameterized queries lastUpdateParam.Value = MiscTools.DBTimeStampNow(); dbQuery.Parameters.Add(lastUpdateParam);