LibreChat/packages/data-provider/src
copilot-swe-agent[bot] 9fe4554a70 Add local timezone datetime support in agent prompts
- Add timezone support to replaceSpecialVars function with dayjs timezone plugin
- Add new special variables: {{local_datetime}} and {{local_date}}
- Update specialVariables config to include new variables
- Pass timezone from client via Intl.DateTimeFormat API
- Add timezone field to TPayload type
- Update all client-side replaceSpecialVars calls to include timezone
- Add comprehensive tests for timezone-aware special variables
- Update web_search tool context to include local datetime when timezone available

Co-authored-by: berry-13 <81851188+berry-13@users.noreply.github.com>
2025-10-21 21:26:26 +00:00
..
react-query 🔐 refactor: Improve MCP Auth UX for Agent Panel (#9762) 2025-09-22 08:53:19 -04:00
types 📎 feat: Direct Provider Attachment Support for Multimodal Content (#9994) 2025-10-06 17:30:16 -04:00
accessPermissions.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
actions.ts 📋 feat: Support Custom Content-Types in Action Descriptors (#9364) 2025-08-29 23:02:40 -04:00
api-endpoints.ts 🧰 refactor: Decouple MCP Tools from System Tools (#9748) 2025-09-21 07:56:40 -04:00
artifacts.ts 🪟 fix: Windows Build (npm) (#3889) 2024-09-02 10:01:09 -04:00
azure.ts 🔃 refactor: Decouple Effects from AppService, move to data-schemas (#9974) 2025-10-05 06:37:57 -04:00
bedrock.ts 🪨 feat: Bedrock Support for Claude-4 Reasoning (#7517) 2025-05-23 00:42:51 -04:00
config.ts Add local timezone datetime support in agent prompts 2025-10-21 21:26:26 +00:00
createPayload.ts Add local timezone datetime support in agent prompts 2025-10-21 21:26:26 +00:00
data-service.ts 🔗 fix: Add branch-specific shared links (targetMessageId) (#10016) 2025-10-10 08:42:05 -04:00
feedback.ts 📈 feat: Chat rating for feedback (#5878) 2025-05-30 12:16:34 -04:00
file-config.ts 📎 feat: Direct Provider Attachment Support for Multimodal Content (#9994) 2025-10-06 17:30:16 -04:00
generate.ts 🪐 feat: Initial OpenAI Responses API Support (#8149) 2025-06-30 18:34:47 -04:00
headers-helpers.ts chore: add back data-provider 2023-07-30 11:50:24 -04:00
index.ts 🔍 refactor: OCR Fully Optional with Defaults for "Upload as Text" (#9856) 2025-09-26 11:56:11 -04:00
keys.ts 🧰 refactor: Decouple MCP Tools from System Tools (#9748) 2025-09-21 07:56:40 -04:00
mcp.ts 📮 feat: Custom OAuth Headers Support for MCP Server Config (#10014) 2025-10-11 11:17:12 -04:00
messages.ts 🐛 fix: String Interpolation in Messages Endpoint from #9155 (#9312) 2025-08-27 13:48:48 -04:00
models.ts 🗂️ feat: Add Optional Group Field to ModelSpecs Configuration (#9996) 2025-10-11 07:55:06 -04:00
parameterSettings.ts 📎 feat: Upload as Text Support for Plaintext, STT, RAG, and Token Limits (#8868) 2025-08-27 03:44:39 -04:00
parsers.ts Add local timezone datetime support in agent prompts 2025-10-21 21:26:26 +00:00
permissions.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
request.ts 🔃 fix: Refresh Token Edge Cases (#9625) 2025-09-13 21:36:45 -04:00
roles.ts 🛂 feat: Role as Permission Principal Type 2025-08-13 16:24:23 -04:00
schemas.ts 📎 feat: Direct Provider Attachment Support for Multimodal Content (#9994) 2025-10-06 17:30:16 -04:00
types.ts Add local timezone datetime support in agent prompts 2025-10-21 21:26:26 +00:00
utils.ts 🔎 feat: Native Web Search with Citation References (#7516) 2025-05-23 17:40:40 -04:00