Skip to content

Conversation

@sigmachirality
Copy link
Member

Add timezone indicators to the "soonest" and "max" column headers in sf zones ls to clarify the displayed times.

The "START/END" columns were interpreted as "soonest" and "max" which represent start times. A getTimezoneAbbreviation() function was added to detect the user's local timezone (e.g., PST) or default to UTC. The timezone abbreviation is displayed in yellow for better visibility.


Slack Thread

Open in Cursor Open in Web

cursoragent and others added 3 commits January 31, 2026 01:16
- Add timezone detection using dayjs timezone plugin
- Display user's local timezone abbreviation (e.g., PST, EST) in soonest/max columns
- Use yellow color for timezone indicator to distinguish from other column headers
- Increase column widths to accommodate timezone labels

Co-authored-by: danieltaox <danieltaox@gmail.com>
- Use Intl.DateTimeFormat directly instead of dayjs.format('z')
- More reliable timezone abbreviation detection in Node.js environment
- Graceful fallback to UTC if timezone detection fails

Co-authored-by: danieltaox <danieltaox@gmail.com>
Co-authored-by: danieltaox <danieltaox@gmail.com>
@cursor
Copy link

cursor bot commented Jan 31, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@semanticdiff-com
Copy link

semanticdiff-com bot commented Jan 31, 2026

Review changes with  SemanticDiff

Changed Files
File Status
  src/lib/zones.tsx  11% smaller
  package-lock.json  0% smaller

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants