File tree Expand file tree Collapse file tree 2 files changed +14
-15
lines changed
Expand file tree Collapse file tree 2 files changed +14
-15
lines changed Original file line number Diff line number Diff line change 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]
Original file line number Diff line number Diff 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`
You can’t perform that action at this time.
0 commit comments