Format date in chat search (chat search, admin settings -> user chat's search) according to DEFAULT_LOCALE
Added
added en-gb locale to $lib/dayjs based on user request
Changed
n/a
Deprecated
n/a
Removed
n/a
Fixed
Dates were previously always MM/DD/YYYY format. This PR automatically formats the date according to user's set DEFAULT_LOCALE environment variable, for example if DEFAULT_LOCALE='en-gb', then date will be formatted as DD/MM/YYYY
this PR addresses date formatting issues in two frequently used chat search modals:
main chat search modal.
-Admin Settings -> User Chat Search modal.
The changes ensure that both use DEFAULT_LOCALE for date formatting. Further investigation will identify and correct any additional occurrences of improper date formatting in future PRs, once this solution is validated
Screenshots or Videos
The following have DEFAULT_LOCALE='en-gb'
Chat Search
Admin Settings -> Users -> Chat Search
Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
Note
Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/open-webui/open-webui/pull/19305
**Author:** [@dannyl1u](https://github.com/dannyl1u)
**Created:** 11/20/2025
**Status:** ✅ Merged
**Merged:** 11/21/2025
**Merged by:** [@tjbck](https://github.com/tjbck)
**Base:** `dev` ← **Head:** `fix/date-locale/searchchats`
---
### 📝 Commits (2)
- [`2ed3a4d`](https://github.com/open-webui/open-webui/commit/2ed3a4dd2f7d858fe6e97ef7ff3d75193502ff34) fix: localized format
- [`87df50f`](https://github.com/open-webui/open-webui/commit/87df50ff40b3b680b211e393feef28556d946cb1) load default_locale from backend
### 📊 Changes
**4 files changed** (+23 additions, -2 deletions)
<details>
<summary>View changed files</summary>
📝 `src/lib/components/layout/ChatsModal.svelte` (+10 -1)
📝 `src/lib/components/layout/SearchModal.svelte` (+10 -1)
📝 `src/lib/dayjs.js` (+1 -0)
📝 `src/routes/+layout.svelte` (+2 -0)
</details>
### 📄 Description
# Pull Request Checklist
# Changelog Entry
### Description
- Format date in chat search (chat search, admin settings -> user chat's search) according to DEFAULT_LOCALE
### Added
- added `en-gb` locale to $lib/dayjs based on user request
### Changed
- n/a
### Deprecated
- n/a
### Removed
- n/a
### Fixed
- Dates were previously always MM/DD/YYYY format. This PR automatically formats the date according to user's set DEFAULT_LOCALE environment variable, for example if `DEFAULT_LOCALE='en-gb'`, then date will be formatted as DD/MM/YYYY
### Security
- n/a
### Breaking Changes
- n/a
---
### Additional Information
- closes issue #19020
- this PR addresses date formatting issues in two frequently used chat search modals:
- main chat search modal.
-Admin Settings -> User Chat Search modal.
The changes ensure that both use DEFAULT_LOCALE for date formatting. Further investigation will identify and correct any additional occurrences of improper date formatting in future PRs, once this solution is validated
### Screenshots or Videos
The following have `DEFAULT_LOCALE='en-gb'`
- Chat Search
<img width="1421" height="922" alt="Screenshot 2025-11-19 at 5 29 59 PM" src="https://github.com/user-attachments/assets/324ce836-c369-4c93-bf63-79d91aa05bc2" />
- Admin Settings -> Users -> Chat Search
<img width="1237" height="423" alt="image" src="https://github.com/user-attachments/assets/9e3db205-87ee-45b3-824b-939a61599a2e" />
### Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the [Contributor License Agreement (CLA)](https://github.com/open-webui/open-webui/blob/main/CONTRIBUTOR_LICENSE_AGREEMENT), and I am providing my contributions under its terms.
> [!NOTE]
> Deleting the CLA section will lead to immediate closure of your PR and it will not be merged in.
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/19305
Author: @dannyl1u
Created: 11/20/2025
Status: ✅ Merged
Merged: 11/21/2025
Merged by: @tjbck
Base:
dev← Head:fix/date-locale/searchchats📝 Commits (2)
2ed3a4dfix: localized format87df50fload default_locale from backend📊 Changes
4 files changed (+23 additions, -2 deletions)
View changed files
📝
src/lib/components/layout/ChatsModal.svelte(+10 -1)📝
src/lib/components/layout/SearchModal.svelte(+10 -1)📝
src/lib/dayjs.js(+1 -0)📝
src/routes/+layout.svelte(+2 -0)📄 Description
Pull Request Checklist
Changelog Entry
Description
Added
en-gblocale to $lib/dayjs based on user requestChanged
Deprecated
Removed
Fixed
DEFAULT_LOCALE='en-gb', then date will be formatted as DD/MM/YYYYSecurity
Breaking Changes
Additional Information
-Admin Settings -> User Chat Search modal.
The changes ensure that both use DEFAULT_LOCALE for date formatting. Further investigation will identify and correct any additional occurrences of improper date formatting in future PRs, once this solution is validated
Screenshots or Videos
The following have
DEFAULT_LOCALE='en-gb'Chat Search

Admin Settings -> Users -> Chat Search

Contributor License Agreement
By submitting this pull request, I confirm that I have read and fully agree to the Contributor License Agreement (CLA), and I am providing my contributions under its terms.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.