We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87024b8 commit c54d065Copy full SHA for c54d065
src/cli/commands/ChatCommand.ts
@@ -799,13 +799,14 @@ const defaultEnvironmentFunctions = {
799
getDate: defineChatSessionFunction({
800
description: "Retrieve the current date",
801
handler() {
802
- return new Date().toLocaleDateString();
+ const date = new Date();
803
+ return date.getFullYear() + "-" + String(date.getMonth() + 1).padStart(2, "0") + "-" + String(date.getDate()).padStart(2, "0");
804
}
805
}),
806
getTime: defineChatSessionFunction({
807
description: "Retrieve the current time",
808
- return new Date().toLocaleTimeString();
809
+ return new Date().toLocaleTimeString("en-US");
810
811
})
812
};
0 commit comments