You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(calendar): add --timezone flag to event create (#844)
* feat(calendar): add --timezone flag to event create
Apply one IANA timezone to both --from and --to via --timezone/--tz,
mutually exclusive with the granular --start-timezone/--end-timezone
flags. Mirrors the existing --timezone/--tz on `calendar create-calendar`.
Adds resolveUnifiedTimezone (mutex + set-both), which returns the flag
name so invalid-zone/all-day errors attribute to the flag the user set.
Includes unit + command tests, regenerated command docs, and a changelog
entry.
Co-Authored-By: Claude Opus 4.8 <[email protected]>
* docs(changelog): note calendar timezone flag
---------
Co-authored-by: Claude Opus 4.8 <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@
4
4
5
5
### Added
6
6
7
+
- Calendar: add `create --timezone`/`--tz` to apply one IANA timezone to both event endpoints while retaining granular start/end timezone flags. (#844) — thanks @malob.
7
8
- Docs: add non-destructive `insert-image --before` and `--after` anchors while clarifying that `--at` replaces its placeholder. (#839) — thanks @sebsnyk.
8
9
- Slides: allow `insert-image` and `replace-slide` to use public HTTPS image URLs without temporary Drive sharing. (#825) — thanks @sebsnyk.
9
10
- Slides: add structured element geometry, styled text runs, table-cell content, image source URLs, native presentation metadata, and read-only text location with exact UTF-16 ranges. (#822) — thanks @sebsnyk.
|`--source-url`|`string`|| URL where event was created/imported from |
67
67
|`--start-timezone`<br>`--from-timezone`|`string`|| IANA timezone metadata for --from (e.g., Europe/Rome) |
68
68
|`--summary`|`string`|| Event summary/title |
69
+
|`--timezone`<br>`--tz`|`string`|| IANA timezone metadata applied to both --from and --to (e.g., America/Los_Angeles); mutually exclusive with --start-timezone/--end-timezone |
69
70
|`--to`|`string`|| End time (RFC3339) |
70
71
|`--transparency`|`string`|| Show as busy (opaque) or free (transparent). Aliases: busy, free |
Copy file name to clipboardExpand all lines: internal/cmd/calendar_edit.go
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,7 @@ type CalendarCreateCmd struct {
22
22
Tostring`name:"to" help:"End time (RFC3339)"`
23
23
StartTimezonestring`name:"start-timezone" aliases:"from-timezone" help:"IANA timezone metadata for --from (e.g., Europe/Rome)"`
24
24
EndTimezonestring`name:"end-timezone" aliases:"to-timezone" help:"IANA timezone metadata for --to (e.g., America/New_York)"`
25
+
Timezonestring`name:"timezone" aliases:"tz" help:"IANA timezone metadata applied to both --from and --to (e.g., America/Los_Angeles); mutually exclusive with --start-timezone/--end-timezone"`
0 commit comments