mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
refactor(core): Stronger typing for workflow settings (no-changelog) (#5754)
This commit is contained in:
committed by
GitHub
parent
d33a1ac1e9
commit
c9d9069c0e
@@ -66,7 +66,7 @@ export class Expression {
|
||||
if (value instanceof Date) {
|
||||
// We don't want to use JSON.stringify for dates since it disregards workflow timezone
|
||||
result = DateTime.fromJSDate(value, {
|
||||
zone: this.workflow.settings.timezone?.toString() ?? 'default',
|
||||
zone: this.workflow.settings?.timezone ?? 'default',
|
||||
}).toISO();
|
||||
} else {
|
||||
result = JSON.stringify(value);
|
||||
|
||||
Reference in New Issue
Block a user