This is an automated email from the ASF dual-hosted git repository.

liyang pushed a commit to branch kylin5
in repository https://gitbox.apache.org/repos/asf/kylin.git

commit 1373cef36190e17aa0b348ff635a69b9f659dd33
Author: ShengHuang <huangshen...@163.com>
AuthorDate: Fri Sep 13 20:22:15 2024 +0800

    KYLIN-5974 fix utc time picker
---
 .../studio/InternalTable/DataManagement/DataManagement.vue          | 4 ++++
 .../src/components/studio/InternalTable/DataManagement/LoadData.vue | 6 +++---
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git 
a/kystudio/src/components/studio/InternalTable/DataManagement/DataManagement.vue
 
b/kystudio/src/components/studio/InternalTable/DataManagement/DataManagement.vue
index c5a0e82bff..61a310ea81 100644
--- 
a/kystudio/src/components/studio/InternalTable/DataManagement/DataManagement.vue
+++ 
b/kystudio/src/components/studio/InternalTable/DataManagement/DataManagement.vue
@@ -271,6 +271,10 @@ export default class DataManagement extends Vue {
     .el-dialog__body {
       overflow: visible !important;
     }
+    .data-list-table {
+      max-height: 430px;
+      overflow: auto;
+    }
     .el-dialog__wrapper {
       overflow: hidden;
     }
diff --git 
a/kystudio/src/components/studio/InternalTable/DataManagement/LoadData.vue 
b/kystudio/src/components/studio/InternalTable/DataManagement/LoadData.vue
index 33f2369c3a..835c4d68d1 100644
--- a/kystudio/src/components/studio/InternalTable/DataManagement/LoadData.vue
+++ b/kystudio/src/components/studio/InternalTable/DataManagement/LoadData.vue
@@ -81,6 +81,7 @@ import { mapActions } from 'vuex'
 import * as types from 'src/store/types'
 import { handleSuccessAsync } from 'src/util'
 import { timePartitionFormatOptions } from '../const'
+import { transToUTCMs } from 'util/business'
 
 @Component({
   props: {
@@ -184,11 +185,10 @@ export default class LoadData extends Vue {
             database: this.tableInfo.database,
             table: this.tableInfo.name,
             project: this.tableInfo.project,
-
             incremental: this.activeTab === 'append',
             refresh: false,
-            start_date: this.activeTab === 'append' ? 
this.ruleForm.dateRange[0].getTime() : null,
-            end_date: this.activeTab === 'append' ? 
this.ruleForm.dateRange[1].getTime() : null,
+            start_date: this.activeTab === 'append' ? 
transToUTCMs(this.ruleForm.dateRange[0].getTime()) : null,
+            end_date: this.activeTab === 'append' ? 
transToUTCMs(this.ruleForm.dateRange[1].getTime()) : null,
             yarn_queue: 'default'
           }).then(handleSuccessAsync).catch(() => {
             this.$message.error(this.$t('saveFailed'))

Reply via email to