- {translate('common.based-on-time-preface')} Universal Standard Time (UTC)
+ {translate('schedules.iana-timezones-link-preface')}
+ {translate('schedules.iana-timezones-link')}
diff --git a/src/lib/i18n/locales/en/schedules.ts b/src/lib/i18n/locales/en/schedules.ts
index d7c3423b46..b6f5787e32 100644
--- a/src/lib/i18n/locales/en/schedules.ts
+++ b/src/lib/i18n/locales/en/schedules.ts
@@ -74,7 +74,7 @@ export const Strings = {
'Select the day(s) of the week this schedule will always run on.',
'time-view-heading': 'Time',
'time-view-description':
- 'Specify the time (UTC) for this schedule to run. By default, the schedule will run at 00:00 UTC if left blank.',
+ 'Specify the time for this schedule to run. By default, the schedule will run at 00:00 UTC if left blank.',
'interval-view-heading': 'Recurring Time',
'interval-view-description':
'Specify the time interval for this schedule to run (for example every 5 minutes).',
@@ -97,4 +97,6 @@ export const Strings = {
'getting-started-cli-link-preface': 'or get started with',
'add-schedule-attr': 'Schedule Attributes',
'add-workflow-attr': 'Workflow Attributes',
+ 'iana-timezones-link-preface': 'Based on names in the',
+ 'iana-timezones-link': 'IANA time zone database',
} as const;
diff --git a/src/lib/pages/schedule-edit.svelte b/src/lib/pages/schedule-edit.svelte
index d9fa2fa3a8..8b8715374f 100644
--- a/src/lib/pages/schedule-edit.svelte
+++ b/src/lib/pages/schedule-edit.svelte
@@ -51,6 +51,7 @@
months,
searchAttributes,
workflowSearchAttributes,
+ timezoneName,
} = args;
const action: ScheduleActionParameters = {
identity,
@@ -71,6 +72,7 @@
second,
phase,
cronString,
+ timezoneName,
};
const presets: SchedulePresetsParameters = {
preset,
diff --git a/src/lib/pages/schedules-create.svelte b/src/lib/pages/schedules-create.svelte
index 0b9044ba4e..3f6c8e100e 100644
--- a/src/lib/pages/schedules-create.svelte
+++ b/src/lib/pages/schedules-create.svelte
@@ -39,6 +39,7 @@
months,
searchAttributes,
workflowSearchAttributes,
+ timezoneName,
} = args;
const action: ScheduleActionParameters = {
@@ -60,6 +61,7 @@
second,
phase,
cronString,
+ timezoneName,
};
const presets: SchedulePresetsParameters = {
preset,
diff --git a/src/lib/stores/schedules.ts b/src/lib/stores/schedules.ts
index a24cc58769..4b1bf0bf82 100644
--- a/src/lib/stores/schedules.ts
+++ b/src/lib/stores/schedules.ts
@@ -47,7 +47,7 @@ const setBodySpec = (
spec: Partial,
presets: SchedulePresetsParameters,
) => {
- const { hour, minute, second, phase, cronString } = spec;
+ const { hour, minute, second, phase, cronString, timezoneName } = spec;
const { preset, months, days, daysOfMonth, daysOfWeek } = presets;
if (preset === 'string') {
// Add the cronString as a comment to the cronString to view it for frequency
@@ -82,6 +82,7 @@ const setBodySpec = (
];
body.schedule.spec.interval = [];
body.schedule.spec.cronString = [];
+ body.schedule.spec.timezoneName = timezoneName || 'UTC';
}
};
diff --git a/src/lib/types/schedule.ts b/src/lib/types/schedule.ts
index 583f20a3b3..58c1527616 100644
--- a/src/lib/types/schedule.ts
+++ b/src/lib/types/schedule.ts
@@ -57,6 +57,7 @@ export type ScheduleSpecParameters = {
cronString: string;
searchAttributes: SearchAttributeInput[];
workflowSearchAttributes?: SearchAttributeInput[];
+ timezoneName: string;
};
// For UI Only