mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-27 17:04:57 -05:00
[PR #10076] [MERGED] fix: return local date from getFormattedDate
#61324
Reference in New Issue
Block a user
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/10076
Author: @crizCraig
Created: 2/15/2025
Status: ✅ Merged
Merged: 2/16/2025
Merged by: @tjbck
Base:
dev← Head:local_date📝 Commits (2)
0dae8defix: return local date fromgetFormattedDatee67eb89style: black format📊 Changes
2 files changed (+5 additions, -3 deletions)
View changed files
📝
backend/open_webui/retrieval/web/utils.py(+1 -2)📝
src/lib/utils/index.ts(+4 -1)📄 Description
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:
devbranch.Changelog Entry
Description
getFormattedDatecurrently mixes a UTC date (from date.toISOString()) with a local time fromdate.toTimeString(). Since only the date is affected, it's actually correct a lot of the time depending on your timezone. But if your current day is 1 ahead or behind UTC,getFormattedDatewill be wrong.Fixed
new Date()instead ofdate.toISOString()for the date part ofgetFormattedDateThanks Tim!
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.