Skip to content

[Bug] All-day events show incorrect start date in calendar +agenda #579

@rebugui

Description

@rebugui

Description

When displaying all-day events via gws calendar +agenda, the start date appears to be earlier than the actual event date.

Steps to Reproduce

  1. Create an all-day event (e.g., March 23, 2026)
  2. Run: gws calendar +agenda --days 7 --format table
  3. Observe the start date in output

Expected Behavior

All-day event on March 23 should show:

  • start: 2026-03-23
  • end: 2026-03-24 (or 2026-03-23)

Actual Behavior

All-day event on March 23 shows:

  • start: 2026-03-21
  • end: 2026-03-23

Example output:

calendar  end                        start                      summary
────────  ─────────────────────────  ─────────────────────────  ────────────────────────
일정        2026-03-23                2026-03-21                 
일정        2026-03-23                2026-03-21                 
일정        2026-03-27                2026-03-23                 

Environment

  • gws version: 0.18.1
  • OS: macOS 15.2 (arm64)
  • Install method: Homebrew
  • Timezone: Asia/Seoul (GMT+9)

Additional Context

This issue affects all all-day events. The start date consistently shows 2 days earlier than the actual event date.

Timed events (with specific start/end times like 2026-03-23T18:45:00+09:00) display correctly.

The issue appears to be related to timezone handling for all-day events which use date field instead of dateTime in Google Calendar API response.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions