diff --git a/CHANGELOG.md b/CHANGELOG.md index ecf9e31d6f..b8bb61b9ac 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,6 @@ ## [3.1.6] - Fix bug where filepaths with Chinese characters would not show up in context mention menu (thanks @chi-chat!) -- Add timestamp to prompts to help with certain MCP servers that need the current time (thanks @MrUbens!) - Update Anthropic model prices (thanks @timoteostewart!) ## [3.1.5] diff --git a/src/core/Cline.ts b/src/core/Cline.ts index 2bf7218222..f53dbb7260 100644 --- a/src/core/Cline.ts +++ b/src/core/Cline.ts @@ -3149,20 +3149,20 @@ export class Cline { } // Add current time information with timezone - const now = new Date() - const formatter = new Intl.DateTimeFormat(undefined, { - year: "numeric", - month: "numeric", - day: "numeric", - hour: "numeric", - minute: "numeric", - second: "numeric", - hour12: true, - }) - const timeZone = formatter.resolvedOptions().timeZone - const timeZoneOffset = -now.getTimezoneOffset() / 60 // Convert to hours and invert sign to match conventional notation - const timeZoneOffsetStr = `${timeZoneOffset >= 0 ? "+" : ""}${timeZoneOffset}:00` - details += `\n\n# Current Time\n${formatter.format(now)} (${timeZone}, UTC${timeZoneOffsetStr})` + // const now = new Date() + // const formatter = new Intl.DateTimeFormat(undefined, { + // year: "numeric", + // month: "numeric", + // day: "numeric", + // hour: "numeric", + // minute: "numeric", + // second: "numeric", + // hour12: true, + // }) + // const timeZone = formatter.resolvedOptions().timeZone + // const timeZoneOffset = -now.getTimezoneOffset() / 60 // Convert to hours and invert sign to match conventional notation + // const timeZoneOffsetStr = `${timeZoneOffset >= 0 ? "+" : ""}${timeZoneOffset}:00` + // details += `\n\n# Current Time\n${formatter.format(now)} (${timeZone}, UTC${timeZoneOffsetStr})` if (includeFileDetails) { details += `\n\n# Current Working Directory (${cwd.toPosix()}) Files\n`