Skip to content

Comments

Add timezone support to cronjob commands#1617

Merged
martin-helmich merged 3 commits intomasterfrom
copilot/add-timezone-support-to-cronjobs
Feb 2, 2026
Merged

Add timezone support to cronjob commands#1617
martin-helmich merged 3 commits intomasterfrom
copilot/add-timezone-support-to-cronjobs

Conversation

Copy link
Contributor

Copilot AI commented Jan 29, 2026

The API now supports timezone configuration for cron jobs. This adds CLI support for the new field.

Changes

  • cronjob create / cronjob update: Added --timezone flag accepting IANA timezone identifiers (e.g., Europe/Berlin, America/New_York)
  • cronjob list / cronjob get: Display timezone field, defaulting to "UTC" when unset
  • Flag definition: Added timezone flag to /src/lib/resources/cronjob/flags.tsx

Usage

# Create with timezone
mw cronjob create --description "Nightly job" --interval "0 0 * * *" \
  --timezone="Europe/Berlin" --url="https://example.com/cron"

# Update timezone
mw cronjob update <cronjob-id> --timezone="America/New_York"

The timezone field is optional and follows the same validation pattern as other fields (interval, email, url) where the API validates the input.

Original prompt

This section details on the original issue you should resolve

<issue_title>Cron jobs now support timezones</issue_title>
<issue_description>When creating cron jobs, users can now set a timezone.1

This affects the following commands:

  • mw cronjob create and mw cronjob update need a --timezone flag (example: --timezone=Europe/Berlin that is passed into the createCronjob API call
  • mw cronjob list and mw cronjob get should display the timezone (if set), and default to UTC if no time zone is set.

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Footnotes

  1. https://github.com/mittwald/feature-requests/issues/282#issuecomment-3817953165</issue_description>

Copilot AI and others added 2 commits January 29, 2026 14:28
Copilot AI changed the title [WIP] Add timezone support for cron job commands Add timezone support to cronjob commands Jan 29, 2026
Copilot AI requested a review from martin-helmich January 29, 2026 14:34
@martin-helmich martin-helmich marked this pull request as ready for review February 2, 2026 16:03
@martin-helmich martin-helmich merged commit bee194c into master Feb 2, 2026
12 checks passed
@martin-helmich martin-helmich deleted the copilot/add-timezone-support-to-cronjobs branch February 2, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cron jobs now support timezones

2 participants