Switched Datetime format for <environment_details> to something clearer (ISO) #2353
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
The datetime format for <environment_details> was weird and had the potential to confuse LLMs.
For example it used an international date format that was not defined and fell back to local. In my case (German) todays date output was 6.4.2025 which got confused by LLM for June 4th multiple times (instead of April 6th).
The forced time format of 12h which is completely not used in germany probably added to that confusion.
Implementation
I changed the date format to a proper ISO format including the timezone offset to keep the local relation.
Get in Touch
@Helmi on discord.
Important
Changed datetime format in
Cline.tsto ISO with timezone offset for clarity ingetEnvironmentDetails().Cline.ts, changed datetime format to ISO with timezone offset ingetEnvironmentDetails().toISOString()and manual timezone offset calculation.This description was created by
for d0c725a. It will automatically update as commits are pushed.