Skip to content

fix: timezone fallback and attachment output hardening#251

Merged
steipete merged 3 commits intomainfrom
land/pr-228
Feb 14, 2026
Merged

fix: timezone fallback and attachment output hardening#251
steipete merged 3 commits intomainfrom
land/pr-228

Conversation

@steipete
Copy link
Copy Markdown
Collaborator

Lands #228 (conflict-resolution + a few small follow-ups).

Fixes #216
Fixes #217
Fixes #223

Test: make ci

steipete and others added 3 commits February 14, 2026 14:01
Lands #228.

Co-authored-by: salmonumbrella <182032677+salmonumbrella@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
@steipete steipete merged commit 1a125ef into main Feb 14, 2026
7 checks passed
@steipete steipete deleted the land/pr-228 branch February 14, 2026 13:06
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 92b571cf80

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

if hours > 0 {
return fmt.Sprintf("Etc/GMT-%d", hours)
}
return fmt.Sprintf("Etc/GMT+%d", -hours)
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Validate Etc/GMT fallback before returning it

For RFC3339 datetimes west of UTC beyond 12 hours (for example -13:00), this branch returns IDs like Etc/GMT+13, but those zones do not exist in the IANA database (time.LoadLocation fails for Etc/GMT+13/Etc/GMT+14). That means buildEventDateTime can emit an invalid timeZone, and Calendar event writes (especially recurring ones) may be rejected by the API instead of cleanly omitting timeZone as before. Please bound this fallback to valid Etc/GMT ranges or validate with time.LoadLocation before returning.

Useful? React with 👍 / 👎.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant