mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-13 04:45:19 +00:00
fix: return local date from getFormattedDate
This commit is contained in:
parent
74c8690cd1
commit
0dae8ded13
1 changed files with 4 additions and 1 deletions
|
|
@ -1000,7 +1000,10 @@ export const bestMatchingLanguage = (supportedLanguages, preferredLanguages, def
|
|||
// Get the date in the format YYYY-MM-DD
|
||||
export const getFormattedDate = () => {
|
||||
const date = new Date();
|
||||
return date.toISOString().split('T')[0];
|
||||
const year = date.getFullYear();
|
||||
const month = String(date.getMonth() + 1).padStart(2, '0');
|
||||
const day = String(date.getDate()).padStart(2, '0');
|
||||
return `${year}-${month}-${day}`;
|
||||
};
|
||||
|
||||
// Get the time in the format HH:MM:SS
|
||||
|
|
|
|||
Loading…
Reference in a new issue