From 1a17fa14b2e787b904dad607e7895a6583102c7c Mon Sep 17 00:00:00 2001 From: milimoe Date: Fri, 25 Oct 2024 01:15:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8=E5=B8=B8=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- OshimaCore/Controllers/TestController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OshimaCore/Controllers/TestController.cs b/OshimaCore/Controllers/TestController.cs index 087c03b..69cca6e 100644 --- a/OshimaCore/Controllers/TestController.cs +++ b/OshimaCore/Controllers/TestController.cs @@ -32,7 +32,7 @@ namespace Oshima.Core.Controllers if (sql != null) { sql.ExecuteDataSet(ServerLoginLogs.Select_GetLastLoginTime()); - if (sql.Success && DateTime.TryParse(sql.DataSet.Tables[0].Rows[0]["LastTime"].ToString(), out DateTime date)) + if (sql.Success && DateTime.TryParse(sql.DataSet.Tables[0].Rows[0][ServerLoginLogs.Column_LastTime].ToString(), out DateTime date)) { string month = date.ToString("MMM", CultureInfo.InvariantCulture); int day = date.Day;