Skip to content

Commit 52582c4

Browse files
committed
Remove timestamp context
1 parent 7d1830f commit 52582c4

File tree

2 files changed

+14
-15
lines changed

2 files changed

+14
-15
lines changed

CHANGELOG.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
## [3.1.6]
44

55
- Fix bug where filepaths with Chinese characters would not show up in context mention menu (thanks @chi-chat!)
6-
- Add timestamp to prompts to help with certain MCP servers that need the current time (thanks @MrUbens!)
76
- Update Anthropic model prices (thanks @timoteostewart!)
87

98
## [3.1.5]

src/core/Cline.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3149,20 +3149,20 @@ export class Cline {
31493149
}
31503150

31513151
// Add current time information with timezone
3152-
const now = new Date()
3153-
const formatter = new Intl.DateTimeFormat(undefined, {
3154-
year: "numeric",
3155-
month: "numeric",
3156-
day: "numeric",
3157-
hour: "numeric",
3158-
minute: "numeric",
3159-
second: "numeric",
3160-
hour12: true,
3161-
})
3162-
const timeZone = formatter.resolvedOptions().timeZone
3163-
const timeZoneOffset = -now.getTimezoneOffset() / 60 // Convert to hours and invert sign to match conventional notation
3164-
const timeZoneOffsetStr = `${timeZoneOffset >= 0 ? "+" : ""}${timeZoneOffset}:00`
3165-
details += `\n\n# Current Time\n${formatter.format(now)} (${timeZone}, UTC${timeZoneOffsetStr})`
3152+
// const now = new Date()
3153+
// const formatter = new Intl.DateTimeFormat(undefined, {
3154+
// year: "numeric",
3155+
// month: "numeric",
3156+
// day: "numeric",
3157+
// hour: "numeric",
3158+
// minute: "numeric",
3159+
// second: "numeric",
3160+
// hour12: true,
3161+
// })
3162+
// const timeZone = formatter.resolvedOptions().timeZone
3163+
// const timeZoneOffset = -now.getTimezoneOffset() / 60 // Convert to hours and invert sign to match conventional notation
3164+
// const timeZoneOffsetStr = `${timeZoneOffset >= 0 ? "+" : ""}${timeZoneOffset}:00`
3165+
// details += `\n\n# Current Time\n${formatter.format(now)} (${timeZone}, UTC${timeZoneOffsetStr})`
31663166

31673167
if (includeFileDetails) {
31683168
details += `\n\n# Current Working Directory (${cwd.toPosix()}) Files\n`

0 commit comments

Comments
 (0)