guoziyun 9 mesi fa
parent
commit
0f74846214

+ 2 - 2
oms/dist/src/services/messageRecordService.js

@@ -483,8 +483,8 @@ class MessageRecordService {
 }
 exports.MessageRecordService = MessageRecordService;
 // 提取常量便于维护
-// private static readonly TIMEZONE = "America/Los_Angeles"; // UTC+8时区
-MessageRecordService.TIMEZONE = "Asia/Shanghai"; // UTC+8时区
+MessageRecordService.TIMEZONE = "America/Los_Angeles"; // UTC+8时区
+// private static readonly TIMEZONE = "Asia/Shanghai"; // UTC+8时区
 MessageRecordService.DEFAULT_PAGE = 1;
 MessageRecordService.DEFAULT_LIMIT = 10;
 MessageRecordService.DEFAULT_SORT_FIELD = "createdAt";

+ 1 - 1
oms/public/app/index.html

@@ -9,5 +9,5 @@
   <style>body,html{width:100%;height:100%}*,:after,:before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;-ms-overflow-style:scrollbar;-webkit-tap-highlight-color:transparent}@-ms-viewport{width:device-width}body{margin:0;color:#000000d9;font-size:14px;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-variant:tabular-nums;line-height:1.5715;background-color:#fff;font-feature-settings:"tnum"}html{--antd-wave-shadow-color:#1890ff;--scroll-bar:0}</style><link rel="stylesheet" href="styles-LXBSU6DF.css" media="print" onload="this.media='all'"><noscript><link rel="stylesheet" href="styles-LXBSU6DF.css"></noscript></head>
   <body>
     <app-root></app-root>
-  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-E5F3HTYQ.js" type="module"></script></body>
+  <script src="polyfills-B6TNHZQ6.js" type="module"></script><script src="main-I7ZRIIO6.js" type="module"></script></body>
 </html>

File diff suppressed because it is too large
+ 0 - 0
oms/public/app/main-I7ZRIIO6.js


+ 2 - 2
oms/src/services/messageRecordService.ts

@@ -2,8 +2,8 @@ import { MessageRecord, IMessageRecord } from "../models/messageRecordModel";
 
 export class MessageRecordService {
   // 提取常量便于维护
-  // private static readonly TIMEZONE = "America/Los_Angeles"; // UTC+8时区
-  private static readonly TIMEZONE = "Asia/Shanghai"; // UTC+8时区
+  private static readonly TIMEZONE = "America/Los_Angeles"; // UTC+8时区
+  // private static readonly TIMEZONE = "Asia/Shanghai"; // UTC+8时区
   private static readonly DEFAULT_PAGE = 1;
   private static readonly DEFAULT_LIMIT = 10;
   private static readonly DEFAULT_SORT_FIELD = "createdAt";

+ 9 - 9
omsapp/src/app/pages/message-dashboard.component.ts

@@ -474,18 +474,18 @@ export class MessageDashboardComponent implements OnInit {
   }
 
   // 为API格式化日期为ISO字符串(YYYY-MM-DD)
-  // private formatDateForApi(date: Date): string {
-  //   return date.toISOString().split('T')[0];
-  // }
-
   private formatDateForApi(date: Date): string {
-    // 手动拼接年月日,确保使用本地日期
-    const year = date.getFullYear();
-    const month = String(date.getMonth() + 1).padStart(2, '0');
-    const day = String(date.getDate()).padStart(2, '0');
-    return `${year}-${month}-${day}`;
+    return date.toISOString().split('T')[0];
   }
 
+  // private formatDateForApi(date: Date): string {
+  //   // 手动拼接年月日,确保使用本地日期
+  //   const year = date.getFullYear();
+  //   const month = String(date.getMonth() + 1).padStart(2, '0');
+  //   const day = String(date.getDate()).padStart(2, '0');
+  //   return `${year}-${month}-${day}`;
+  // }
+
   // 排序方法
   sortData(
     data: any[],

Some files were not shown because too many files changed in this diff