bug(calendar): --sort start places all-day events at midnight UTC instead of the calendar's timezone
Maintainers usually reply within 1 day
A pull request for this has already been merged.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 25/100
Research direction
Start with internal/cmd/calendar_event_days.go#L142-L155 and internal/cmd/calendar_list.go#L470 to trace how event dates are parsed for sorting. Reproduce the Asia/Tokyo example using the command shown in the issue, then check that the all-day event sorts before the 08:00 event on the same calendar day. An open linked pull request indicates work is already underway.
Written by the indexing model from the issue text.
Description
Summary
For a calendar in a non-UTC timezone, calendar events --sort start orders an all-day event by midnight UTC. In Asia/Tokyo, an all-day event on 2026-11-03 sorts after an 08:00 event on the same day.
Current (v0.47.1)
gog calendar events --cal 1 --from 2026-11-03 --days 1 --sort start # calendar timeZone Asia/Tokyo
# timed1 2026-11-03T08:00:00+09:00 … Breakfast
# allday1 2026-11-03 … Holiday
All-day start.date values have no timeZone, so parseEventDate parses them in UTC (calendar_event_days.go#L142-L155, via calendar_list.go#L470).
Suggested
Fall back to the event's calendar timezone (already known for display) when parsing an all-day date for sorting.
Environment
gog v0.47.1 (main at 82e7fd6). Reproduced against a local fake of the Calendar API through GOG_GOOGLE_API_BASE_URL.
- Dominant language
- Go
- Stars
- 8.6k
- Forks
- 727
- Avg merge
- 19h 20m
- Merged PRs (30d)
- 67
Getting set up
- Ships a Dockerfile or Docker Compose file
- No pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from openclaw/gogcli
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
openclaw/gogcli#1291 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
feat(gmail): make gmail get --format raw text output the exact message, like drafts get --format rawOpenclawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
openclaw/gogcli#1276 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P3
Difficulty 5/5 Over a week Newbie friendliness 35/100
openclaw/gogcli#1275 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:needs-product-decision clawsweeper:needs-security-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:auth-provider impact:security issue-rating: 🦞 diamond lobster P2
Difficulty 3/5 1-2 days Newbie friendliness 70/100
openclaw/gogcli#1259 · 2 comments · 1 reaction ·
Maintainers usually reply within 1 day
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:auth-provider impact:crash-loop issue-rating: 🦞 diamond lobster P1
Difficulty 3/5 1-2 days Newbie friendliness 60/100
openclaw/gogcli#1258 · 3 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
enhancement needs:sonnet ready-for-agent
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
microsoft/TypeScript#65370 ·
Maintainers usually reply within 1 day
-
docs: data-ownership invites vendors to build add-ons around the OSPossibly taken @brandli claimed this today. Open
Difficulty 1/5 Under an hour Newbie friendliness 85/100
gentian-org/gentian-os#894 ·
Maintainers usually reply within 1 day
-
bug tech debt testing
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
aws/amazon-vpc-cni-k8s#3976 ·
Maintainers usually reply within 1 day
-
bug raised-by:desk
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
medici-finance/assay#5678 ·
Maintainers usually reply within 1 day