Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Zoneless repeating event: occurrences are an hour off after DST, and a title-only --occurrence edit moves the day

オープン
#590 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
50/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
go
領域
backend, cli

調査の方向性

Start with internal/cmd/events_occurrence.go, tracing virtualOccurrence into occurrenceInstants and how the account zone is obtained; then read the zone handling in events.go and events_zone.go. Reproduce with a zoneless weekly event across the DST boundary and a title-only --occurrence edit. Done means the virtual and edited occurrence stay at 9:00 AM in the account zone; the issue also identifies the separate period API behavior as HEY-side work.

索引モデルが issue の本文から書いたものです。

説明

Summary

I was working on a project to sync Hey Calendar to a Google Calendar (https://github.com/edooley/hey-gcal) and stumbled across this: for a repeating event saved without a time zone (created in HEY's web app, so starts_at_time_zone is null), occurrences after a daylight saving change are an hour off in two ways:

  1. Read: the calendar period API behind hey event week / hey event day reports them at the series' original UTC time, while HEY's web calendar shows the correct local time.
  2. Write (data change): hey event edit <series> --occurrence <id> --apply-to current with only --title saves that UTC-based time, so the meeting moves an hour in HEY's web calendar.

Steps to reproduce

  1. Use a HEY account and machine in America/Chicago.
  2. In HEY's web app, create a weekly event "Test" on Wednesday 2026-10-21, 9:00–10:00 AM.
  3. Run hey event week 2026-11-04 --json. DST ends on 2026-11-01.
  4. Open HEY's web calendar on 2026-11-04.
  5. Edit only that day's title:
    hey event edit <series> --occurrence <series>_2026-11-04 --apply-to current --title "Test (title-only edit)"
    
  6. Run hey event week 2026-11-04 --json again, and check the web calendar.

Expected

  • Steps 3–4: the API and the web calendar agree: 9:00 AM CST, starts_at = 2026-11-04T15:00:00Z.
  • Step 5: only the title changes. The day stays at 9:00 AM.

Actual

Step Source 2026-11-04
3 hey event week --json (virtual day) 14:00:00Z = 8:00 AM CST ❌
4 HEY web calendar 9:00 AM ✅
5 hey event edit … --title … response starts_at 14:00:00Z, new recording written out ❌
6 hey event week --json (written-out day) 14:00:00Z
6 HEY web calendar 8:00 AM: the meeting moved ❌
  • 2026-10-21, before the DST change, is correct everywhere (14:00:00Z = 9:00 AM CDT).
  • starts_at_time_zone is null on the series, its parent, every occurrence, and the written-out day.
  • Zoned events (e.g. invites carrying America/New_York) are not affected.
  • Passing the time explicitly (--start-time 09:00 --end-time 10:00) writes 15:00:00Z and fixes the day.

Where it comes from

  • Read: hey-sdk's CalendarPeriods().Week / .Day return HEY's JSON unchanged, and hey event week doesn't modify starts_at. So the UTC-based time comes from HEY's period API, which disagrees with HEY's web calendar for the same day.
  • Write: virtualOccurrence → occurrenceInstants (internal/cmd/events_occurrence.go) rebuilds a virtual day's start from the series. With no StartsAtTimeZone it uses time.UTC, so the series' 14:00 UTC is kept on 2026-11-04 instead of its 9:00 local wall time. The comments in events.go / events_zone.go also describe HEY reading zoneless times as UTC, which matches the API but not the web app.

Suggested fix

  • In occurrenceInstants, expand a zoneless series in the HEY account's zone (accountZone), not UTC, so an edit keeps the day where the web app shows it. Consider refusing the edit when the account has no zone, as writeZone does.
  • On HEY's side, the period API should expand zoneless series the way the web calendar does, so starts_at is right for every API client.

Environment

  • hey 1.9.0 (main at 02efc42), hey-sdk 0.32.1
  • macOS, America/Chicago
  • Related but separate: #585 / #563 (which local day an event lands on)
主要言語
Go
スター
414
フォーク
53
平均マージ
1日 5時間
マージ済み PR(30日)
78

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

basecamp/hey-cli のほかの issue

basecamp/hey-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。