mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
fix(editor): Fix unexpected date rendering on front-end (#5528)
🔥 Remove front-end date rendering logic that changes date timezone to workflow TZ
This commit is contained in:
committed by
GitHub
parent
510855d958
commit
684d717520
@@ -159,7 +159,7 @@
|
||||
<script lang="ts">
|
||||
/* eslint-disable prefer-spread */
|
||||
import { INodeUi, ITableData, NDVState } from '@/Interface';
|
||||
import { getPairedItemId, parseDate } from '@/utils';
|
||||
import { getPairedItemId } from '@/utils';
|
||||
import Vue, { PropType } from 'vue';
|
||||
import mixins from 'vue-typed-mixins';
|
||||
import { GenericValue, IDataObject, INodeExecutionData } from 'n8n-workflow';
|
||||
@@ -171,7 +171,6 @@ import { useWorkflowsStore } from '@/stores/workflows';
|
||||
import { useNDVStore } from '@/stores/ndv';
|
||||
import MappingPill from './MappingPill.vue';
|
||||
import { getMappedExpression } from '@/utils/mappingUtils';
|
||||
import { DateTime } from 'luxon';
|
||||
|
||||
const MAX_COLUMNS_LIMIT = 40;
|
||||
|
||||
@@ -366,25 +365,17 @@ export default mixins(externalHooks).extend({
|
||||
return this.$locale.baseText('runData.emptyString');
|
||||
}
|
||||
if (typeof value === 'string') {
|
||||
const parsedDate = parseDate(value, this.workflowsStore.workflow.settings?.timezone);
|
||||
if (parsedDate) {
|
||||
return parsedDate.toString();
|
||||
}
|
||||
return value.replaceAll('\n', '\\n');
|
||||
}
|
||||
|
||||
if (Array.isArray(value) && value.length === 0) {
|
||||
return this.$locale.baseText('runData.emptyArray');
|
||||
}
|
||||
|
||||
if (typeof value === 'object' && value !== null && Object.keys(value).length === 0) {
|
||||
return this.$locale.baseText('runData.emptyObject');
|
||||
}
|
||||
|
||||
if (value === null || value === undefined) {
|
||||
return `[${value}]`;
|
||||
}
|
||||
|
||||
return value;
|
||||
},
|
||||
onDragStart() {
|
||||
|
||||
Reference in New Issue
Block a user