From 3c08c6a18196f5802c623959bfcecdb7707cd13d Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期四, 03 八月 2023 13:30:07 +0800
Subject: [PATCH] 0-10v小模块bug修复,

---
 HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs |   23 ++++++++++++++++++++---
 1 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
index 30afa04..6bc91dc 100644
--- a/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
+++ b/HDL_ON/UI/UI2/1-HomePage/MessageCenterPage.cs
@@ -378,9 +378,9 @@
             //鏃ユ湡
             var btnDatetime = new Button()
             {
-                X = Application.GetRealWidth(259),
+                X = Application.GetRealWidth(249),
                 Y = btnTilte.Bottom + Application.GetRealHeight(4),
-                Width = Application.GetRealWidth(100),
+                Width = Application.GetRealWidth(110),
                 Height = Application.GetRealHeight(17),
                 TextAlignment = TextAlignment.CenterRight,
                 TextColor = CSS_Color.PromptingColor1,
@@ -406,7 +406,7 @@
             };
 
 
-            btnDatetime.Text = GetUnixToDateTime(pushMessageInfo.createTime);
+            btnDatetime.Text = GetUnixToDateTime2(pushMessageInfo.createTime);
 
             EventHandler<MouseEventArgs> eventHandler = (sender, e) =>
             {
@@ -438,6 +438,23 @@
         }
 
         /// <summary>
+        /// 鏃堕棿鏍煎紡杞崲澶勭悊
+        /// </summary>
+        /// <param name="time">姣鏃堕棿鎴�</param>
+        /// <returns></returns>
+        string GetUnixToDateTime2(long time)
+        {
+            try
+            {
+                return Utlis.UnixToDateTimeWithFormatMS(time, "yyyy-MM-dd HH:mm");
+            }
+            catch (Exception ex)
+            {
+                return "";
+            }
+        }
+
+        /// <summary>
         /// 鍒犻櫎鎺ㄩ�佹秷鎭�
         /// <param name="pushMessageInfo"></param>
         /// <param name="rowView"></param>

--
Gitblit v1.8.0