Documentation
¶
Overview ¶
Package calendar is the single owner of "which calendar day is this?".
Two stored shapes exist:
- Instant — created_at, updated_at, resolved_at, status_changed_at, reopened_at, assignee_changed_at. UTC timestamps. The calendar day is the day in the given zone (local for the UI / Match).
- Date — duedate. A YYYY-MM-DD calendar date stored as written. Never parse it as UTC midnight.
Go and the web (web/src/lib/calendar.ts) implement the same rules. Explain reports the decision so a mismatch is observable.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Decision ¶
type Decision struct {
Raw string `json:"raw"`
Kind string `json:"kind"`
Zone string `json:"zone"`
CalendarDay string `json:"calendar_day"`
OK bool `json:"ok"`
}
Decision is one Day conversion, for tests and debugging.
Click to show internal directories.
Click to hide internal directories.