LibreChat/packages
Lionel Ringenbach 736960e0a4 🕐 fix: Use client timezone for special variable date formatting
`replaceSpecialVars` uses `dayjs()` which defaults to the server's
timezone (UTC in Docker), causing `{{current_datetime}}` and
`{{current_date}}` to always show +00:00 regardless of the user's
location. This is inconsistent with `append_current_datetime` for
assistants which already handles client timezone via `clientTimestamp`.

Add dayjs timezone plugin support and a `timezone` parameter to
`replaceSpecialVars`. The client sends its IANA timezone string
(`Intl.DateTimeFormat().resolvedOptions().timeZone`) alongside the
existing `clientTimestamp`, and the agent initialization flow passes
it through to produce timezone-aware date formatting.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-27 00:02:26 -07:00
..
api 🕐 fix: Use client timezone for special variable date formatting 2026-03-27 00:02:26 -07:00
client 📁 refactor: Prompts UI (#11570) 2026-03-22 16:56:22 -04:00
data-provider 🕐 fix: Use client timezone for special variable date formatting 2026-03-27 00:02:26 -07:00
data-schemas 📁 refactor: Prompts UI (#11570) 2026-03-22 16:56:22 -04:00