Skip to content

Conversation

@scarf005
Copy link
Contributor

Summary

This PR standardizes date formatting across the codebase to use the ISO 8601 format (YYYY-MM-DD) instead of locale-dependent formats.

Changes

  • Updated Locale.datetime() in packages/opencode/src/util/locale.ts to use en-CA locale for toLocaleDateString(), which outputs dates in YYYY-MM-DD format
  • Renamed variable from localDate to isoDate for clarity

Rationale

  • Consistency: ISO 8601 is an internationally recognized standard for date representation
  • Sortability: YYYY-MM-DD format is lexicographically sortable
  • Clarity: Removes ambiguity between MM/DD/YYYY (US) and DD/MM/YYYY (European) formats
  • Interoperability: Better for data exchange and API responses

@scarf005 scarf005 force-pushed the chore/standardize-date-format-iso8601 branch from e40c89b to c76982e Compare December 30, 2025 16:17
@scarf005 scarf005 force-pushed the chore/standardize-date-format-iso8601 branch from f77bdf8 to 5ae0273 Compare December 30, 2025 17:04
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.

1 participant