mirror of
https://github.com/n8n-io/n8n.git
synced 2026-12-04 16:51:08 +00:00
fix(Schedule Trigger Node): Use the correct moment import (#8185)
Any node that uses `moment.tz` should import from `moment-timezone` instead of `moment`. This fixes #8184
This commit is contained in:
1 parent
e94b8a6c30
commit
17a4e2ea80
2 files changed
+2
-2
No files matched your search
@@ -1,5 +1,5 @@
|
||||
import type { IDataObject } from 'n8n-workflow';
|
||||
import moment from 'moment';
|
||||
import moment from 'moment-timezone';
|
||||
import type { IRecurencyRule } from './SchedulerInterface';
|
||||
|
||||
export function recurencyCheck(
|
||||
|
||||
@@ -8,7 +8,7 @@ import type {
|
||||
import { NodeOperationError } from 'n8n-workflow';
|
||||
|
||||
import { CronJob } from 'cron';
|
||||
import moment from 'moment';
|
||||
import moment from 'moment-timezone';
|
||||
import type { IRecurencyRule } from './SchedulerInterface';
|
||||
import { convertToUnixFormat, recurencyCheck } from './GenericFunctions';
|
||||
|
||||
|
||||
Reference in new issue
Block a user