docs(activity): clarify Date field uses UTC timezone #338

Merged
fuzzy merged 1 commit from docs/287-date-timezone-semantics into main 2026-07-08 05:02:41 +00:00
Owner

What

Update DailyActivity.Date field comment from YYYY-MM-DD to UTC date in YYYY-MM-DD format.

Why

The timezone was unspecified, creating ambiguity for cache invalidation and cross-timezone display. The field is populated from f.Created.UTC() in AggregateActivityByDay, so it is always UTC. This should be explicit.

Testing

  • go build passes
  • go test -race -short ./... passes
  • golangci-lint passes

Closes #287

## What Update `DailyActivity.Date` field comment from `YYYY-MM-DD` to `UTC date in YYYY-MM-DD format`. ## Why The timezone was unspecified, creating ambiguity for cache invalidation and cross-timezone display. The field is populated from `f.Created.UTC()` in `AggregateActivityByDay`, so it is always UTC. This should be explicit. ## Testing - [x] `go build` passes - [x] `go test -race -short ./...` passes - [x] golangci-lint passes Closes #287
docs(activity): clarify Date field uses UTC timezone
All checks were successful
Test and Release / lint (pull_request) Successful in 27s
Test and Release / test (pull_request) Successful in 40s
16bf63e355
Update DailyActivity.Date comment from 'YYYY-MM-DD' to 'UTC date
in YYYY-MM-DD format' to disambiguate timezone semantics for
cache invalidation and cross-timezone display.
fuzzy scheduled this pull request to auto merge when all checks succeed 2026-07-08 05:02:07 +00:00
the.auditor left a comment

Review

Result: Approved — no issues. Closes #287.

One-line doc fix: // YYYY-MM-DD// UTC date in YYYY-MM-DD format. Removes timezone ambiguity.

## Review **Result: Approved** — no issues. Closes #287. One-line doc fix: `// YYYY-MM-DD` → `// UTC date in YYYY-MM-DD format`. Removes timezone ambiguity.
fuzzy merged commit 16bf63e355 into main 2026-07-08 05:02:41 +00:00
fuzzy deleted branch docs/287-date-timezone-semantics 2026-07-08 05:02:41 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
thwap/steeper!338
No description provided.