Skip to content

Conversation

@chrarnoldus
Copy link
Collaborator

No description provided.

@changeset-bot
Copy link

changeset-bot bot commented Jul 11, 2025

🦋 Changeset detected

Latest commit: 402d32d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
kilo-code Patch

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

Copy link
Contributor

Copilot AI left a 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_change comments

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}`

@chrarnoldus
Copy link
Collaborator Author

I tried a bunch of models and they all seem to get it. They might ramble about the time zone conversion though.

@chrarnoldus chrarnoldus marked this pull request as draft July 11, 2025 17:24
@chrarnoldus
Copy link
Collaborator Author

Should add the offset back

@chrarnoldus chrarnoldus marked this pull request as ready for review July 11, 2025 17:30
@chrarnoldus chrarnoldus merged commit 82656cb into main Jul 11, 2025
11 checks passed
@chrarnoldus chrarnoldus deleted the christiaan/isotime branch July 11, 2025 18:13
@chrarnoldus
Copy link
Collaborator Author

Some funny stuff from Opus before this change:

The user is asking for the current date. I can see from the environment_details that the current time is provided as "7/11/2025, 5:18:34 PM (Europe/Amsterdam, UTC+2:00)". This appears to be in a format of month/day/year.
So the current date is November 7th, 2025.

image image

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