[PR #11808] [MERGED] FIX #5682 dates not surviving importing #9591

Closed
opened 2025-11-11 18:26:28 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/open-webui/open-webui/pull/11808
Author: @FarisHijazi
Created: 3/18/2025
Status: Merged
Merged: 3/18/2025
Merged by: @tjbck

Base: devHead: dev


📝 Commits (1)

  • eff1a23 fixed 5682 dates not surviving importing

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 src/lib/utils/index.ts (+1 -1)

📄 Description

FIXES #5682, FIXES #11773 Extremely simple fix: just replaced the frontend svelte code that does the importing. One of the keys were wrong, it was convo['timestamp'] instead of convo['create_time']

Pull Request Checklist

Note to first-time contributors: Please open a discussion post in Discussions and describe your changes before submitting a pull request.

Before submitting, make sure you've checked the following:

  • Target branch: Please verify that the pull request targets the dev branch.
  • Description: Fixed issue FIXES #5682, FIXES #11773 where chat dates were not being preserved during import due to incorrect property name.
  • Changelog: Added changelog entry below.
  • Documentation: No documentation updates needed for this fix.
  • Dependencies: No dependency changes.
  • Testing: Tested importing chats and verified dates are now preserved correctly.
  • Code review: Performed self-review, change is minimal and follows project standards.
  • Prefix: Using fix prefix as this resolves a bug.

Changelog Entry

Description

Fixed an issue where chat dates were not being preserved when importing conversations. The bug was caused by accessing the wrong property name (timestamp instead of create_time) when mapping the imported chat data.

Fixed

  • Chat dates now correctly persist when importing conversations by using the proper create_time property instead of timestamp

Breaking Changes

None


Additional Information

The fix addresses issue #5682 where imported chat dates were being lost. The root cause was that we were trying to access convo['timestamp'] but the data actually uses convo['create_time'] for the timestamp field. This small property name change ensures the dates are properly preserved during import.

The change is minimal and only affects the chat import functionality. No other parts of the codebase are impacted.


🔄 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/11808 **Author:** [@FarisHijazi](https://github.com/FarisHijazi) **Created:** 3/18/2025 **Status:** ✅ Merged **Merged:** 3/18/2025 **Merged by:** [@tjbck](https://github.com/tjbck) **Base:** `dev` ← **Head:** `dev` --- ### 📝 Commits (1) - [`eff1a23`](https://github.com/open-webui/open-webui/commit/eff1a23c19dd036d632ce9da6646c3d2a4a3e975) fixed 5682 dates not surviving importing ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `src/lib/utils/index.ts` (+1 -1) </details> ### 📄 Description FIXES #5682, FIXES #11773 Extremely simple fix: just replaced the frontend svelte code that does the importing. One of the keys were wrong, it was `convo['timestamp']` instead of `convo['create_time']` # Pull Request Checklist ### Note to first-time contributors: Please open a discussion post in [Discussions](https://github.com/open-webui/open-webui/discussions) and describe your changes before submitting a pull request. **Before submitting, make sure you've checked the following:** - [x] **Target branch:** Please verify that the pull request targets the `dev` branch. - [x] **Description:** Fixed issue FIXES #5682, FIXES #11773 where chat dates were not being preserved during import due to incorrect property name. - [x] **Changelog:** Added changelog entry below. - [x] **Documentation:** No documentation updates needed for this fix. - [x] **Dependencies:** No dependency changes. - [x] **Testing:** Tested importing chats and verified dates are now preserved correctly. - [x] **Code review:** Performed self-review, change is minimal and follows project standards. - [x] **Prefix:** Using `fix` prefix as this resolves a bug. # Changelog Entry ### Description Fixed an issue where chat dates were not being preserved when importing conversations. The bug was caused by accessing the wrong property name (`timestamp` instead of `create_time`) when mapping the imported chat data. ### Fixed - Chat dates now correctly persist when importing conversations by using the proper `create_time` property instead of `timestamp` ### Breaking Changes None --- ### Additional Information The fix addresses issue #5682 where imported chat dates were being lost. The root cause was that we were trying to access `convo['timestamp']` but the data actually uses `convo['create_time']` for the timestamp field. This small property name change ensures the dates are properly preserved during import. The change is minimal and only affects the chat import functionality. No other parts of the codebase are impacted. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-11 18:26:28 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#9591