-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Provide time in ISO format #1263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
🦋 Changeset detectedLatest commit: 402d32d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Adds ISO 8601 formatting for the current time and simplifies the timezone lookup.
- Replaces custom date formatting and offset calculation with
toISOString()for UTC output - Retains user time zone name via
Intl.DateTimeFormat().resolvedOptions().timeZone - Marks changes with
kilocode_changecomments
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/core/environment/getEnvironmentDetails.ts | Switch to ISO UTC format and remove verbose formatter |
| .changeset/clever-lights-sleep.md | Notes that time is now provided in ISO format |
Comments suppressed due to low confidence (1)
src/core/environment/getEnvironmentDetails.ts:186
- Consider adding or updating unit tests to verify that the output includes the ISO string and the user time zone as expected, ensuring this change is covered for future regressions.
details += `\n\n# Current Time\nCurrent time in ISO 8601 UTC format: ${now.toISOString()}\nUser time zone: ${timeZone}`
|
I tried a bunch of models and they all seem to get it. They might ramble about the time zone conversion though. |
|
Should add the offset back |


No description provided.